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
a32d2cbe
Commit
a32d2cbe
authored
Mar 24, 2022
by
xiexiuxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
flx:合同代码合并miju
parent
ff0162b6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
55 additions
and
41 deletions
+55
-41
index.tsx
src/pages/contract/components/examine/index.tsx
+21
-16
index.tsx
src/pages/contract/contractexecution/details/index.tsx
+0
-0
index.tsx
src/pages/contract/coordination/details/index.tsx
+6
-1
Table.tsx
src/pages/contract/manage/add/Table.tsx
+2
-2
ContractText.tsx
src/pages/contract/manage/add/components/ContractText.tsx
+10
-9
index.tsx
src/pages/contract/manage/details/index.tsx
+3
-2
ContractText.tsx
...pages/contract/manage/editing/components/ContractText.tsx
+4
-2
index.tsx
src/pages/contract/manage/purchase/index.tsx
+9
-9
No files found.
src/pages/contract/components/examine/index.tsx
View file @
a32d2cbe
...
@@ -33,6 +33,7 @@ const Examine: React.FC<Iprops> = ({
...
@@ -33,6 +33,7 @@ const Examine: React.FC<Iprops> = ({
})
=>
{
})
=>
{
const
[
isPass
,
setIsAllMember
]
=
useState
(
1
)
const
[
isPass
,
setIsAllMember
]
=
useState
(
1
)
const
[
state
,
setstate
]
=
useState
<
any
>
(
false
);
const
[
state
,
setstate
]
=
useState
<
any
>
(
false
);
const
[
contractUrl
,
setcontractUrl
]
=
useState
(
''
);
/* 设置选中值 */
/* 设置选中值 */
const
handleIsAllMemberChange
=
(
v
:
any
)
=>
{
const
handleIsAllMemberChange
=
(
v
:
any
)
=>
{
setIsAllMember
(
v
.
target
.
value
)
setIsAllMember
(
v
.
target
.
value
)
...
@@ -91,11 +92,13 @@ const Examine: React.FC<Iprops> = ({
...
@@ -91,11 +92,13 @@ const Examine: React.FC<Iprops> = ({
/* 合同协同签订-签订合同 */
/* 合同协同签订-签订合同 */
case
'Signacontract'
:
case
'Signacontract'
:
fn
=
postContractManageSign
fn
=
postContractManageSign
values
.
contractUrl
=
contractUrl
;
values
.
contractId
=
applyId
;
values
.
contractId
=
applyId
;
break
;
break
;
}
}
console
.
log
(
values
)
const
msg
=
message
.
loading
({
const
msg
=
message
.
loading
({
content
:
intl
.
formatMessage
({
id
:
'contract.zhengzaicaozuo'
}),
content
:
intl
.
formatMessage
({
id
:
'contract.zhengzaicaozuo'
}),
duration
:
0
,
duration
:
0
,
});
});
fn
(
values
).
then
(
res
=>
{
fn
(
values
).
then
(
res
=>
{
...
@@ -136,9 +139,10 @@ const Examine: React.FC<Iprops> = ({
...
@@ -136,9 +139,10 @@ const Examine: React.FC<Iprops> = ({
},
},
onChange
(
info
)
{
onChange
(
info
)
{
if
(
info
.
file
.
response
)
{
if
(
info
.
file
.
response
)
{
const
{
code
}
=
info
.
file
.
response
;
const
{
code
,
data
:
{
url
}
}
=
info
.
file
.
response
;
console
.
log
(
code
);
console
.
log
(
code
);
message
.
info
(
intl
.
formatMessage
({
id
:
'contract.shangchuanchenggong'
}));
setcontractUrl
(
url
)
message
.
info
(
intl
.
formatMessage
({
id
:
'contract.shangchuanchenggong'
}));
console
.
log
(
info
.
file
)
console
.
log
(
info
.
file
)
setstate
(
true
);
setstate
(
true
);
}
}
...
@@ -148,12 +152,12 @@ const Examine: React.FC<Iprops> = ({
...
@@ -148,12 +152,12 @@ const Examine: React.FC<Iprops> = ({
}
}
if
(
info
.
file
.
status
===
'done'
)
{
if
(
info
.
file
.
status
===
'done'
)
{
}
else
if
(
info
.
file
.
status
===
'error'
)
{
}
else
if
(
info
.
file
.
status
===
'error'
)
{
message
.
error
(
`
${
info
.
file
.
name
}
${
intl
.
formatMessage
({
id
:
'contract.shangchuanshibai'
})}
`
);
message
.
error
(
`
${
info
.
file
.
name
}
${
intl
.
formatMessage
({
id
:
'contract.shangchuanshibai'
})}
`
);
}
}
},
},
beforeUpload
(
file
)
{
beforeUpload
(
file
)
{
if
(
file
.
size
/
1024
/
1024
>
20
)
{
if
(
file
.
size
/
1024
/
1024
>
20
)
{
message
.
warning
(
intl
.
formatMessage
({
id
:
'contract.fujiandaxiaochaoguo20M'
}));
message
.
warning
(
intl
.
formatMessage
({
id
:
'contract.fujiandaxiaochaoguo20M'
}));
return
Promise
.
reject
();
return
Promise
.
reject
();
}
}
},
},
...
@@ -161,13 +165,14 @@ const Examine: React.FC<Iprops> = ({
...
@@ -161,13 +165,14 @@ const Examine: React.FC<Iprops> = ({
const
uploadNode
=
()
=>
{
const
uploadNode
=
()
=>
{
return
(
return
(
<
div
>
<
div
>
<
p
style=
{
{
paddingTop
:
10
,
paddingBottom
:
10
,
}
}
>
{
intl
.
formatMessage
({
id
:
'contract.zhizhihetongyifangyi'
})
}
</
p
>
<
p
style=
{
{
paddingTop
:
10
,
paddingBottom
:
10
,
}
}
>
{
intl
.
formatMessage
({
id
:
'contract.zhizhihetongyifangyi'
})
}
</
p
>
<
Row
style=
{
{
marginBottom
:
30
,
}
}
>
<
Row
style=
{
{
marginBottom
:
30
,
}
}
>
<
Col
>
<
Col
>
<
Upload
<
Upload
{
...
uploadProps
}
{
...
uploadProps
}
maxCount=
{
1
}
>
>
<
Button
icon=
{
<
UploadOutlined
/>
}
>
{
intl
.
formatMessage
({
id
:
'contract.shangchuanfujian'
})
}
</
Button
>
<
Button
icon=
{
<
UploadOutlined
/>
}
>
{
intl
.
formatMessage
({
id
:
'contract.shangchuanfujian'
})
}
</
Button
>
</
Upload
>
</
Upload
>
</
Col
>
</
Col
>
</
Row
>
</
Row
>
...
@@ -176,7 +181,7 @@ const Examine: React.FC<Iprops> = ({
...
@@ -176,7 +181,7 @@ const Examine: React.FC<Iprops> = ({
}
}
return
(
return
(
<
div
>
<
div
>
<
Modal
footer=
{
null
}
title=
{
intl
.
formatMessage
({
id
:
'contract.tijiaoshenhe'
})
}
visible=
{
ExamineFlag
}
onCancel=
{
()
=>
fetchData
(
'onCancel'
)
}
>
<
Modal
footer=
{
null
}
title=
{
intl
.
formatMessage
({
id
:
'contract.tijiaoshenhe'
})
}
visible=
{
ExamineFlag
}
onCancel=
{
()
=>
fetchData
(
'onCancel'
)
}
>
<
Form
<
Form
name=
"basic"
name=
"basic"
form=
{
form
}
form=
{
form
}
...
@@ -185,20 +190,20 @@ const Examine: React.FC<Iprops> = ({
...
@@ -185,20 +190,20 @@ const Examine: React.FC<Iprops> = ({
onFinishFailed=
{
onFinishFailed
}
onFinishFailed=
{
onFinishFailed
}
>
>
{
type
===
'Signacontract'
?
uploadNode
()
:
null
}
{
type
===
'Signacontract'
?
uploadNode
()
:
null
}
<
Form
.
Item
name=
"isPass"
label=
""
rules=
{
[{
required
:
true
,
message
:
intl
.
formatMessage
({
id
:
'contract.qingxuanzetongguofangshi'
})
}]
}
initialValue=
{
isPass
}
>
<
Form
.
Item
name=
"isPass"
label=
""
rules=
{
[{
required
:
true
,
message
:
intl
.
formatMessage
({
id
:
'contract.qingxuanzetongguofangshi'
})
}]
}
initialValue=
{
isPass
}
>
<
Radio
.
Group
onChange=
{
handleIsAllMemberChange
}
>
<
Radio
.
Group
onChange=
{
handleIsAllMemberChange
}
>
<
Radio
value=
{
1
}
>
{
agreeText
}
</
Radio
>
<
Radio
value=
{
1
}
>
{
agreeText
}
</
Radio
>
<
Radio
value=
{
0
}
>
{
disagree
}
</
Radio
>
<
Radio
value=
{
0
}
>
{
disagree
}
</
Radio
>
</
Radio
.
Group
>
</
Radio
.
Group
>
</
Form
.
Item
>
</
Form
.
Item
>
<
Form
.
Item
label=
{
isPass
?
intl
.
formatMessage
({
id
:
'contract.shenhetongguoyuanyin'
})
:
intl
.
formatMessage
({
id
:
'contract.shenbuhetongguoyuanyin'
})
}
rules=
{
[{
required
:
true
,
message
:
intl
.
formatMessage
({
id
:
'contract.qingxuanzezuofeiriqi'
})
}]
}
>
<
Form
.
Item
label=
{
isPass
?
intl
.
formatMessage
({
id
:
'contract.shenhetongguoyuanyin'
})
:
intl
.
formatMessage
({
id
:
'contract.shenbuhetongguoyuanyin'
})
}
rules=
{
[{
required
:
true
,
message
:
intl
.
formatMessage
({
id
:
'contract.qingxuanzezuofeiriqi'
})
}]
}
>
</
Form
.
Item
>
</
Form
.
Item
>
<
Form
.
Item
label=
''
name=
"opinion"
rules=
{
[{
required
:
isPass
?
false
:
true
,
message
:
intl
.
formatMessage
({
id
:
'contract.shenhetongguoyijian'
})
}]
}
>
<
Form
.
Item
label=
''
name=
"opinion"
rules=
{
[{
required
:
isPass
?
false
:
true
,
message
:
intl
.
formatMessage
({
id
:
'contract.shenhetongguoyijian'
})
}]
}
>
<
TextArea
placeholder=
{
intl
.
formatMessage
({
id
:
'contract.zaicishurunideyuanyin'
})
}
maxLength=
{
120
}
/>
<
TextArea
placeholder=
{
intl
.
formatMessage
({
id
:
'contract.zaicishurunideyuanyin'
})
}
maxLength=
{
120
}
/>
</
Form
.
Item
>
</
Form
.
Item
>
<
div
style=
{
{
display
:
'flex'
,
justifyContent
:
'flex-end'
}
}
>
<
div
style=
{
{
display
:
'flex'
,
justifyContent
:
'flex-end'
}
}
>
<
Button
onClick=
{
()
=>
fetchData
(
'onCancel'
)
}
style=
{
{
marginRight
:
10
}
}
>
{
intl
.
formatMessage
({
id
:
'contract.quxiao'
})
}
</
Button
>
<
Button
onClick=
{
()
=>
fetchData
(
'onCancel'
)
}
style=
{
{
marginRight
:
10
}
}
>
{
intl
.
formatMessage
({
id
:
'contract.quxiao'
})
}
</
Button
>
<
Button
type=
"primary"
htmlType=
"submit"
>
{
intl
.
formatMessage
({
id
:
'contract.baocun'
})
}
</
Button
>
<
Button
type=
"primary"
htmlType=
"submit"
>
{
intl
.
formatMessage
({
id
:
'contract.baocun'
})
}
</
Button
>
</
div
>
</
div
>
</
Form
>
</
Form
>
</
Modal
>
</
Modal
>
...
@@ -206,8 +211,8 @@ const Examine: React.FC<Iprops> = ({
...
@@ -206,8 +211,8 @@ const Examine: React.FC<Iprops> = ({
)
)
}
}
Examine
.
defaultProps
=
{
Examine
.
defaultProps
=
{
agreeText
:
intl
.
formatMessage
({
id
:
'contract.tongguo'
}),
agreeText
:
intl
.
formatMessage
({
id
:
'contract.tongguo'
}),
disagree
:
intl
.
formatMessage
({
id
:
'contract.butongguo'
}),
disagree
:
intl
.
formatMessage
({
id
:
'contract.butongguo'
}),
uploadNode
:
null
uploadNode
:
null
}
}
export
default
Examine
;
export
default
Examine
;
src/pages/contract/contractexecution/details/index.tsx
View file @
a32d2cbe
This diff is collapsed.
Click to expand it.
src/pages/contract/coordination/details/index.tsx
View file @
a32d2cbe
...
@@ -64,6 +64,7 @@ const Details = (props: any) => {
...
@@ -64,6 +64,7 @@ const Details = (props: any) => {
const
[
basicData
,
setbasicData
]
=
useState
<
any
>
({
const
[
basicData
,
setbasicData
]
=
useState
<
any
>
({
invoiceProveVOList
:
[],
invoiceProveVOList
:
[],
})
// 合同付款基本信息
})
// 合同付款基本信息
const
[
contractUrl
,
setcontractUrl
]
=
useState
(
''
);
/* 获取详情的数据 */
/* 获取详情的数据 */
const
getDetail
=
()
=>
{
const
getDetail
=
()
=>
{
getContractCoordinationGetDetail
({
contractId
}).
then
(
res
=>
{
getContractCoordinationGetDetail
({
contractId
}).
then
(
res
=>
{
...
@@ -178,8 +179,10 @@ const Details = (props: any) => {
...
@@ -178,8 +179,10 @@ const Details = (props: any) => {
},
},
onChange
(
info
)
{
onChange
(
info
)
{
if
(
info
.
file
.
response
)
{
if
(
info
.
file
.
response
)
{
const
{
code
}
=
info
.
file
.
response
;
console
.
log
(
info
.
file
)
const
{
code
,
data
:
{
url
}
}
=
info
.
file
.
response
;
console
.
log
(
code
);
console
.
log
(
code
);
setcontractUrl
(
url
)
message
.
info
(
intl
.
formatMessage
({
id
:
'contract.shangchuanchenggong'
}));
message
.
info
(
intl
.
formatMessage
({
id
:
'contract.shangchuanchenggong'
}));
setstate
(
true
);
setstate
(
true
);
}
}
...
@@ -247,6 +250,7 @@ const Details = (props: any) => {
...
@@ -247,6 +250,7 @@ const Details = (props: any) => {
break
;
break
;
case
'Sign'
:
case
'Sign'
:
fn
=
postContractCoordinationSign
;
fn
=
postContractCoordinationSign
;
values
.
contractUrl
=
contractUrl
break
;
break
;
default
:
default
:
break
;
break
;
...
@@ -479,6 +483,7 @@ const Details = (props: any) => {
...
@@ -479,6 +483,7 @@ const Details = (props: any) => {
<
Col
>
<
Col
>
<
Upload
<
Upload
{
...
uploadProps
}
{
...
uploadProps
}
maxCount=
{
1
}
>
>
<
Button
icon=
{
<
UploadOutlined
/>
}
>
{
intl
.
formatMessage
({
id
:
'contract.shangchuanfujian'
})
}
</
Button
>
<
Button
icon=
{
<
UploadOutlined
/>
}
>
{
intl
.
formatMessage
({
id
:
'contract.shangchuanfujian'
})
}
</
Button
>
</
Upload
>
</
Upload
>
...
...
src/pages/contract/manage/add/Table.tsx
View file @
a32d2cbe
...
@@ -145,8 +145,8 @@ export const supplierColumns = [
...
@@ -145,8 +145,8 @@ export const supplierColumns = [
* 第二个内容
* 第二个内容
*/
*/
export
const
goodcolumns
:
any
=
[
export
const
goodcolumns
:
any
=
[
{
title
:
intl
.
formatMessage
({
id
:
'contract.
wuliaobian
hao'
}),
dataIndex
:
'code'
,
align
:
'left'
,
},
{
title
:
intl
.
formatMessage
({
id
:
'contract.
huo
hao'
}),
dataIndex
:
'code'
,
align
:
'left'
,
},
{
title
:
intl
.
formatMessage
({
id
:
'contract.
wuliao
mingcheng'
}),
dataIndex
:
'name'
,
key
:
'name'
,
align
:
'left'
,
},
{
title
:
intl
.
formatMessage
({
id
:
'contract.
huopin
mingcheng'
}),
dataIndex
:
'name'
,
key
:
'name'
,
align
:
'left'
,
},
{
title
:
intl
.
formatMessage
({
id
:
'contract.guigexinghao'
}),
dataIndex
:
'type'
,
align
:
'left'
,
},
{
title
:
intl
.
formatMessage
({
id
:
'contract.guigexinghao'
}),
dataIndex
:
'type'
,
align
:
'left'
,
},
{
{
title
:
intl
.
formatMessage
({
id
:
'contract.pinlei'
}),
dataIndex
:
'type'
,
align
:
'left'
,
title
:
intl
.
formatMessage
({
id
:
'contract.pinlei'
}),
dataIndex
:
'type'
,
align
:
'left'
,
...
...
src/pages/contract/manage/add/components/ContractText.tsx
View file @
a32d2cbe
...
@@ -72,7 +72,7 @@ const ContractText = (props: any) => {
...
@@ -72,7 +72,7 @@ const ContractText = (props: any) => {
/* 生成电子合同 */
/* 生成电子合同 */
const
generate
=
()
=>
{
const
generate
=
()
=>
{
if
(
!
Templatel
.
id
)
{
if
(
!
Templatel
.
id
)
{
message
.
info
(
intl
.
formatMessage
({
id
:
'contract.qingxianxuanzehetongmoban'
}))
message
.
info
(
intl
.
formatMessage
({
id
:
'contract.qingxianxuanzehetongmoban'
}))
}
else
{
}
else
{
const
param
=
{
const
param
=
{
contractTemplateId
:
Templatel
.
id
,
contractTemplateId
:
Templatel
.
id
,
...
@@ -98,7 +98,7 @@ const ContractText = (props: any) => {
...
@@ -98,7 +98,7 @@ const ContractText = (props: any) => {
const
beforeDocUpload
=
(
file
:
any
)
=>
{
const
beforeDocUpload
=
(
file
:
any
)
=>
{
const
isLt20M
=
file
.
size
/
1024
/
1024
<
20
;
const
isLt20M
=
file
.
size
/
1024
/
1024
<
20
;
if
(
!
isLt20M
)
{
if
(
!
isLt20M
)
{
message
.
error
(
intl
.
formatMessage
({
id
:
'contract.shangchuanwenjiandaxiaobuchao'
}));
message
.
error
(
intl
.
formatMessage
({
id
:
'contract.shangchuanwenjiandaxiaobuchao'
}));
}
}
return
isLt20M
;
return
isLt20M
;
}
}
...
@@ -119,21 +119,21 @@ const ContractText = (props: any) => {
...
@@ -119,21 +119,21 @@ const ContractText = (props: any) => {
width
:
'100%'
,
width
:
'100%'
,
}
}
}
}
>
>
<
Form
.
Item
label=
{
intl
.
formatMessage
({
id
:
'contract.hetongmuban'
})
}
labelAlign=
"left"
labelCol=
{
{
span
:
2
}
}
>
<
Form
.
Item
label=
{
intl
.
formatMessage
({
id
:
'contract.hetongmuban'
})
}
labelAlign=
"left"
labelCol=
{
{
span
:
2
}
}
>
<
Select
<
Select
style=
{
{
width
:
600
}
}
style=
{
{
width
:
600
}
}
options=
{
TemplatePage
}
options=
{
TemplatePage
}
placeholder=
{
intl
.
formatMessage
({
id
:
'contract.qingxuanzehetongmuban'
})
}
placeholder=
{
intl
.
formatMessage
({
id
:
'contract.qingxuanzehetongmuban'
})
}
onChange=
{
(
e
)
=>
getTemplate
(
e
)
}
onChange=
{
(
e
)
=>
getTemplate
(
e
)
}
>
>
</
Select
>
</
Select
>
{
{
checkNick
&&
<
Button
type=
'link'
onClick=
{
()
=>
generate
()
}
>
{
intl
.
formatMessage
({
id
:
'contract.shengchenghetong'
})
}
</
Button
>
checkNick
&&
<
Button
type=
'link'
onClick=
{
()
=>
generate
()
}
>
{
intl
.
formatMessage
({
id
:
'contract.shengchenghetong'
})
}
</
Button
>
}
}
</
Form
.
Item
>
</
Form
.
Item
>
{
{
Object
.
keys
(
Templatel
).
length
!=
0
&&
Object
.
keys
(
Templatel
).
length
!=
0
&&
<
Form
.
Item
label=
{
intl
.
formatMessage
({
id
:
'contract.hetongwenben'
})
}
labelAlign=
"left"
labelCol=
{
{
span
:
2
}
}
>
<
Form
.
Item
label=
{
intl
.
formatMessage
({
id
:
'contract.hetongwenben'
})
}
labelAlign=
"left"
labelCol=
{
{
span
:
2
}
}
>
<
div
className=
{
styles
.
upload_item
}
style=
{
{
width
:
680
}
}
>
<
div
className=
{
styles
.
upload_item
}
style=
{
{
width
:
680
}
}
>
<
div
className=
{
styles
.
upload_left
}
style=
{
{
width
:
600
}
}
onClick=
{
()
=>
onDownload
()
}
>
<
div
className=
{
styles
.
upload_left
}
style=
{
{
width
:
600
}
}
onClick=
{
()
=>
onDownload
()
}
>
<
FileWordFilled
/>
<
FileWordFilled
/>
...
@@ -147,17 +147,18 @@ const ContractText = (props: any) => {
...
@@ -147,17 +147,18 @@ const ContractText = (props: any) => {
beforeUpload=
{
beforeDocUpload
}
beforeUpload=
{
beforeDocUpload
}
onChange=
{
handleChange
}
onChange=
{
handleChange
}
accept=
'.doc,.docx'
accept=
'.doc,.docx'
maxCount=
{
1
}
>
>
<
div
className=
{
styles
.
uploadIconBtn
}
>
<
div
className=
{
styles
.
uploadIconBtn
}
>
<
Button
type=
'link'
>
{
intl
.
formatMessage
({
id
:
'contract.shangchuanhetong'
})
}
</
Button
>
<
Button
type=
'link'
>
{
intl
.
formatMessage
({
id
:
'contract.shangchuanhetong'
})
}
</
Button
>
</
div
>
</
div
>
</
Upload
>
</
Upload
>
</
div
>
</
div
>
</
Form
.
Item
>
</
Form
.
Item
>
}
}
<
Form
.
Item
label=
{
intl
.
formatMessage
({
id
:
'contract.dianzihetong'
})
}
labelAlign=
"left"
labelCol=
{
{
span
:
2
}
}
>
<
Form
.
Item
label=
{
intl
.
formatMessage
({
id
:
'contract.dianzihetong'
})
}
labelAlign=
"left"
labelCol=
{
{
span
:
2
}
}
>
<
Checkbox
checked=
{
checkNick
}
onChange=
{
onCheckboxChange
}
>
<
Checkbox
checked=
{
checkNick
}
onChange=
{
onCheckboxChange
}
>
{
intl
.
formatMessage
({
id
:
'contract.shiyongdianzihetong'
})
}
{
intl
.
formatMessage
({
id
:
'contract.shiyongdianzihetong'
})
}
</
Checkbox
>
</
Checkbox
>
</
Form
.
Item
>
</
Form
.
Item
>
</
div
>
</
div
>
...
...
src/pages/contract/manage/details/index.tsx
View file @
a32d2cbe
...
@@ -310,6 +310,7 @@ const Details = (props: any) => {
...
@@ -310,6 +310,7 @@ const Details = (props: any) => {
window
.
open
(
res
.
data
.
url
)
window
.
open
(
res
.
data
.
url
)
}
}
}
else
{
}
else
{
console
.
log
(
1111
)
setIsModalVisible
(
!
Visible
)
setIsModalVisible
(
!
Visible
)
}
}
}
}
...
@@ -432,14 +433,14 @@ const Details = (props: any) => {
...
@@ -432,14 +433,14 @@ const Details = (props: any) => {
<
div
className=
'ant-card-head'
>
<
div
className=
'ant-card-head'
>
<
div
className=
'ant-card-head-wrapper'
>
<
div
className=
'ant-card-head-wrapper'
>
<
div
className=
'ant-card-head-wrapper'
>
<
div
className=
'ant-card-head-wrapper'
>
{
intl
.
formatMessage
({
id
:
'contract.dianz
ihetong'
})
}
{
contractText
.
isUseElectronicContract
?
intl
.
formatMessage
({
id
:
'contract.dianzihetong'
})
:
intl
.
formatMessage
({
id
:
'contract.zhizh
ihetong'
})
}
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
<
div
className=
'ant-card-body'
>
<
div
className=
'ant-card-body'
>
<
div
className=
{
style
.
upload_item
}
style=
{
{
width
:
680
}
}
>
<
div
className=
{
style
.
upload_item
}
style=
{
{
width
:
680
}
}
>
<
div
className=
'ant-card-head-wrapper'
>
<
div
className=
'ant-card-head-wrapper'
>
{
intl
.
formatMessage
({
id
:
'contract.dianz
ihetong'
})
}
{
contractText
.
isUseElectronicContract
?
intl
.
formatMessage
({
id
:
'contract.dianzihetong'
})
:
intl
.
formatMessage
({
id
:
'contract.zhizh
ihetong'
})
}
</
div
>
</
div
>
<
div
className=
{
style
.
upload_left
}
onClick=
{
()
=>
onDownload
(
contractText
)
}
style=
{
{
width
:
600
,
cursor
:
'pointer'
}
}
>
<
div
className=
{
style
.
upload_left
}
onClick=
{
()
=>
onDownload
(
contractText
)
}
style=
{
{
width
:
600
,
cursor
:
'pointer'
}
}
>
<
FileWordFilled
/>
<
FileWordFilled
/>
...
...
src/pages/contract/manage/editing/components/ContractText.tsx
View file @
a32d2cbe
...
@@ -88,9 +88,10 @@ const ContractText = (props: any) => {
...
@@ -88,9 +88,10 @@ const ContractText = (props: any) => {
// 上传回调
// 上传回调
const
handleChange
=
({
fileList
})
=>
{
const
handleChange
=
({
fileList
})
=>
{
if
(
fileList
[
0
].
response
)
{
if
(
fileList
[
0
].
response
)
{
console
.
log
(
fileList
[
0
].
name
,
fileList
[
0
].
response
.
data
)
if
(
fileList
[
0
].
response
.
code
===
1000
)
{
if
(
fileList
[
0
].
response
.
code
===
1000
)
{
Templatel
.
n
ame
=
fileList
[
0
].
name
Templatel
.
fileN
ame
=
fileList
[
0
].
name
Templatel
.
file
Url
=
fileList
[
0
].
response
.
data
Templatel
.
contract
Url
=
fileList
[
0
].
response
.
data
setTemplatel
({
...
Templatel
})
setTemplatel
({
...
Templatel
})
}
}
}
}
...
@@ -153,6 +154,7 @@ const ContractText = (props: any) => {
...
@@ -153,6 +154,7 @@ const ContractText = (props: any) => {
onChange=
{
handleChange
}
onChange=
{
handleChange
}
accept=
'.doc,.docx'
accept=
'.doc,.docx'
maxCount=
{
1
}
maxCount=
{
1
}
>
>
<
div
className=
{
styles
.
uploadIconBtn
}
>
<
div
className=
{
styles
.
uploadIconBtn
}
>
<
Button
type=
'link'
>
{
intl
.
formatMessage
({
id
:
'contract.shangchuanhetong'
})
}
</
Button
>
<
Button
type=
'link'
>
{
intl
.
formatMessage
({
id
:
'contract.shangchuanhetong'
})
}
</
Button
>
...
...
src/pages/contract/manage/purchase/index.tsx
View file @
a32d2cbe
...
@@ -23,7 +23,7 @@ const PurchaseList = () => {
...
@@ -23,7 +23,7 @@ const PurchaseList = () => {
const
[
selectRow
,
setSelectRow
]
=
useState
<
any
[]
>
([])
// 模态框选择的行数据
const
[
selectRow
,
setSelectRow
]
=
useState
<
any
[]
>
([])
// 模态框选择的行数据
//表头
//表头
const
columns
:
ColumnType
<
any
>
[]
=
[{
const
columns
:
ColumnType
<
any
>
[]
=
[{
title
:
intl
.
formatMessage
({
id
:
'contract.xuqiudanhaozhaiyao'
}),
title
:
intl
.
formatMessage
({
id
:
'contract.xuqiudanhaozhaiyao'
}),
dataIndex
:
'demandNO'
,
dataIndex
:
'demandNO'
,
align
:
'left'
,
align
:
'left'
,
render
:
(
text
,
record
)
=>
render
:
(
text
,
record
)
=>
...
@@ -37,7 +37,7 @@ const PurchaseList = () => {
...
@@ -37,7 +37,7 @@ const PurchaseList = () => {
<
p
>
{
record
.
demandAbstract
}
</
p
>
<
p
>
{
record
.
demandAbstract
}
</
p
>
</
div
>
</
div
>
},
{
},
{
title
:
intl
.
formatMessage
({
id
:
'contract.xuqiufabushijian'
}),
title
:
intl
.
formatMessage
({
id
:
'contract.xuqiufabushijian'
}),
dataIndex
:
'demandPublishTime'
,
dataIndex
:
'demandPublishTime'
,
align
:
'left'
,
align
:
'left'
,
sorter
:
{
sorter
:
{
...
@@ -45,12 +45,12 @@ const PurchaseList = () => {
...
@@ -45,12 +45,12 @@ const PurchaseList = () => {
multiple
:
1
,
multiple
:
1
,
},
},
},
{
},
{
title
:
intl
.
formatMessage
({
id
:
'contract.shoubiaohuiyuan'
}),
title
:
intl
.
formatMessage
({
id
:
'contract.shoubiaohuiyuan'
}),
dataIndex
:
'awardName'
,
dataIndex
:
'awardName'
,
align
:
'left'
,
align
:
'left'
,
},
},
{
{
title
:
intl
.
formatMessage
({
id
:
'contract.shoubiaoshijian'
}),
title
:
intl
.
formatMessage
({
id
:
'contract.shoubiaoshijian'
}),
dataIndex
:
'awardTime'
,
dataIndex
:
'awardTime'
,
align
:
'left'
,
align
:
'left'
,
sorter
:
{
sorter
:
{
...
@@ -59,7 +59,7 @@ const PurchaseList = () => {
...
@@ -59,7 +59,7 @@ const PurchaseList = () => {
},
},
},
},
{
{
title
:
intl
.
formatMessage
({
id
:
'contract.shoubiaojine'
}),
title
:
intl
.
formatMessage
({
id
:
'contract.shoubiaojine'
}),
dataIndex
:
'awardAmount'
,
dataIndex
:
'awardAmount'
,
align
:
'left'
,
align
:
'left'
,
sorter
:
{
sorter
:
{
...
@@ -75,7 +75,7 @@ const PurchaseList = () => {
...
@@ -75,7 +75,7 @@ const PurchaseList = () => {
}
}
},
},
{
{
title
:
intl
.
formatMessage
({
id
:
'contract.waibuzhuangtai'
}),
title
:
intl
.
formatMessage
({
id
:
'contract.waibuzhuangtai'
}),
dataIndex
:
'outerStatus'
,
dataIndex
:
'outerStatus'
,
align
:
'left'
,
align
:
'left'
,
...
@@ -87,7 +87,7 @@ const PurchaseList = () => {
...
@@ -87,7 +87,7 @@ const PurchaseList = () => {
}
}
},
},
{
{
title
:
intl
.
formatMessage
({
id
:
'contract.neibuzhuangtai'
}),
title
:
intl
.
formatMessage
({
id
:
'contract.neibuzhuangtai'
}),
dataIndex
:
'innerStatus'
,
dataIndex
:
'innerStatus'
,
align
:
'left'
,
align
:
'left'
,
render
:
(
text
)
=>
{
render
:
(
text
)
=>
{
...
@@ -99,13 +99,13 @@ const PurchaseList = () => {
...
@@ -99,13 +99,13 @@ const PurchaseList = () => {
)
)
}
}
},
{
},
{
title
:
intl
.
formatMessage
({
id
:
'contract.caozuo'
}),
title
:
intl
.
formatMessage
({
id
:
'contract.caozuo'
}),
dataIndex
:
'state'
,
dataIndex
:
'state'
,
align
:
'left'
,
align
:
'left'
,
render
:
(
_
,
record
)
=>
{
render
:
(
_
,
record
)
=>
{
return
(
return
(
<
div
>
<
div
>
<
span
style=
{
{
color
:
'#00B37A'
,
cursor
:
'pointer'
,
marginRight
:
10
}
}
onClick=
{
()
=>
like
(
record
)
}
>
{
intl
.
formatMessage
({
id
:
'contract.chuangjiancaigouxunjiahetong'
})
}
</
span
>
<
span
style=
{
{
color
:
'#00B37A'
,
cursor
:
'pointer'
,
marginRight
:
10
}
}
onClick=
{
()
=>
like
(
record
)
}
>
{
intl
.
formatMessage
({
id
:
'contract.chuangjiancaigouxunjiahetong'
})
}
</
span
>
</
div
>
</
div
>
)
)
}
}
...
...
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