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
7084af47
Commit
7084af47
authored
Sep 28, 2020
by
前端-许佳敏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
电子合同
parent
8deede95
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
8 deletions
+22
-8
index.tsx
src/pages/transaction/purchaseOrder/orderPreview/index.tsx
+1
-1
index.tsx
...rder/orderPreview/components/orderElectronModal/index.tsx
+20
-2
index.tsx
src/pages/transaction/saleOrder/orderPreview/index.tsx
+1
-5
No files found.
src/pages/transaction/purchaseOrder/orderPreview/index.tsx
View file @
7084af47
...
@@ -204,7 +204,7 @@ const CommonOrderDetail:React.FC<CommonOrderDetailProps> = (props) => {
...
@@ -204,7 +204,7 @@ const CommonOrderDetail:React.FC<CommonOrderDetailProps> = (props) => {
const
detailList
=
[
const
detailList
=
[
{
label
:
'对应报价单号'
,
name
:
'quotationNo'
,
span
:
8
,
render
:
text
=>
<
Link
to=
{
'/'
}
>
{
text
}
</
Link
>
},
{
label
:
'对应报价单号'
,
name
:
'quotationNo'
,
span
:
8
,
render
:
text
=>
<
Link
to=
{
'/'
}
>
{
text
}
</
Link
>
},
{
label
:
'订单摘要'
,
name
:
'orderThe'
,
span
:
8
},
{
label
:
'订单摘要'
,
name
:
'orderThe'
,
span
:
8
},
{
label
:
'供应会员'
,
name
:
'supplyMembersName'
,
span
:
8
,
render
:
text
=>
<
Link
to=
{
'/'
}
>
{
text
}
</
Link
>
},
{
label
:
'供应会员'
,
name
:
'supplyMembersName'
,
span
:
8
},
{
label
:
'下单模式'
,
name
:
'orderModel'
,
span
:
8
,
render
:
text
=>
GlobalConfig
.
web
.
orderMode
.
find
(
v
=>
v
.
value
===
text
)?.
label
||
''
},
{
label
:
'下单模式'
,
name
:
'orderModel'
,
span
:
8
,
render
:
text
=>
GlobalConfig
.
web
.
orderMode
.
find
(
v
=>
v
.
value
===
text
)?.
label
||
''
},
{
label
:
'订单类型'
,
name
:
'type'
,
span
:
8
,
render
:
text
=>
orderTypeLabel
[
text
]
},
{
label
:
'订单类型'
,
name
:
'type'
,
span
:
8
,
render
:
text
=>
orderTypeLabel
[
text
]
},
{
label
:
'下单时间'
,
name
:
'createTime'
,
span
:
8
,
render
:
text
=>
formatTimeString
(
text
)
},
{
label
:
'下单时间'
,
name
:
'createTime'
,
span
:
8
,
render
:
text
=>
formatTimeString
(
text
)
},
...
...
src/pages/transaction/saleOrder/orderPreview/components/orderElectronModal/index.tsx
View file @
7084af47
import
React
from
'react'
import
React
,
{
useContext
}
from
'react'
import
{
Modal
,
Button
}
from
'antd'
import
{
Modal
,
Button
}
from
'antd'
import
NiceForm
from
'@/components/NiceForm'
import
NiceForm
from
'@/components/NiceForm'
import
{
createFormActions
,
ISchema
}
from
'@formily/antd'
import
{
createFormActions
,
ISchema
}
from
'@formily/antd'
...
@@ -7,6 +7,8 @@ import { useAsyncInitSelect } from '@/formSchema/effects/useAsyncInitSelect'
...
@@ -7,6 +7,8 @@ import { useAsyncInitSelect } from '@/formSchema/effects/useAsyncInitSelect'
import
{
useAsyncSelect
}
from
'@/formSchema/effects/useAsyncSelect'
import
{
useAsyncSelect
}
from
'@/formSchema/effects/useAsyncSelect'
import
{
PublicApi
}
from
'@/services/api'
import
{
PublicApi
}
from
'@/services/api'
import
{
useHttpRequest
}
from
'@/hooks/useHttpRequest'
import
{
useHttpRequest
}
from
'@/hooks/useHttpRequest'
import
{
getAuth
}
from
'@/utils/auth'
import
{
OrderDetailContext
}
from
'../../context'
export
interface
OrderElectronModalProps
{
export
interface
OrderElectronModalProps
{
currentRef
:
any
currentRef
:
any
...
@@ -105,9 +107,25 @@ const schema: ISchema = {
...
@@ -105,9 +107,25 @@ const schema: ISchema = {
}
}
//@todo 尚未完成
//@todo 尚未完成
const
OrderElectronModal
:
React
.
FC
<
OrderElectronModalProps
>
=
(
props
)
=>
{
const
OrderElectronModal
:
React
.
FC
<
OrderElectronModalProps
>
=
(
props
)
=>
{
const
{
data
}
=
useContext
(
OrderDetailContext
)
const
{
run
,
loading
}
=
useHttpRequest
(
PublicApi
.
postOrderSignatureSignContractCreate
)
const
{
run
,
loading
}
=
useHttpRequest
(
PublicApi
.
postOrderSignatureSignContractCreate
)
const
createElectron
=
async
()
=>
{
const
createElectron
=
async
()
=>
{
// const contractTemplateId = schemaActions.getFieldValue('contractTemplateId')
const
contractTemplateId
=
schemaActions
.
getFieldValue
(
'contractTemplateId'
)
const
orderNo
=
data
.
orderNo
const
signMemberId
=
data
.
createMemberId
const
params
=
{
contractTemplateId
,
orderNo
,
signMemberId
}
const
{
code
,
data
:
resData
}
=
await
PublicApi
.
postOrderSignatureSignContractCreate
(
params
)
if
(
code
===
1000
)
{
}
console
.
log
(
resData
)
console
.
log
(
params
)
}
}
const
electronBtn
=
<
Button
style=
{
{
marginLeft
:
24
}
}
onClick=
{
createElectron
}
loading=
{
loading
}
>
生成电子合同
</
Button
>
const
electronBtn
=
<
Button
style=
{
{
marginLeft
:
24
}
}
onClick=
{
createElectron
}
loading=
{
loading
}
>
生成电子合同
</
Button
>
return
(
return
(
...
...
src/pages/transaction/saleOrder/orderPreview/index.tsx
View file @
7084af47
...
@@ -155,7 +155,7 @@ const CommonOrderDetail:React.FC<CommonOrderDetailProps> = (props) => {
...
@@ -155,7 +155,7 @@ const CommonOrderDetail:React.FC<CommonOrderDetailProps> = (props) => {
}
}
const
renderExtra
=
()
=>
{
const
renderExtra
=
()
=>
{
if
(
!
formData
||
page_type
===
SALE_ORDER_STATUS
.
PREVIEW_ORDER
)
{
if
(
!
formData
||
page_type
===
SALE_ORDER_STATUS
.
PREVIEW_ORDER
||
page_type
===
SaleOrderInsideWorkState
.
CONFIRM_DELIVERY_ORDER
)
{
return
null
return
null
}
}
let
text
=
''
let
text
=
''
...
@@ -164,10 +164,6 @@ const CommonOrderDetail:React.FC<CommonOrderDetailProps> = (props) => {
...
@@ -164,10 +164,6 @@ const CommonOrderDetail:React.FC<CommonOrderDetailProps> = (props) => {
text
=
'确认提交'
text
=
'确认提交'
break
;
break
;
}
}
case
SaleOrderInsideWorkState
.
CONFIRM_DELIVERY_ORDER
:
{
text
=
'确认全部已发货'
break
;
}
case
SaleOrderInsideWorkState
.
CONFIRM_RECEIPT
:
{
case
SaleOrderInsideWorkState
.
CONFIRM_RECEIPT
:
{
text
=
'确认全部已回单'
text
=
'确认全部已回单'
break
;
break
;
...
...
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