Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
contractmanage
Project
Project
Details
Activity
Releases
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
张伯涛
contractmanage
Commits
a09968d4
Commit
a09968d4
authored
Feb 17, 2022
by
张伯涛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
b9c605db
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
93 additions
and
6 deletions
+93
-6
add.vue
src/views/list/add.vue
+93
-6
No files found.
src/views/list/add.vue
View file @
a09968d4
...
...
@@ -1860,7 +1860,7 @@ export default {
this
.
PROJNAMEDisabled
=
false
this
.
checked
=
false
}
if
(
this
.
form
.
PARTIESAUTHORIZED
!==
''
)
{
if
(
this
.
form
.
PARTIESAUTHORIZED
!==
''
&&
this
.
form
.
PARTIESAUTHORIZED
!==
null
)
{
this
.
$set
(
this
.
form
,
'SignOptions'
,
[])
const
signList
=
this
.
form
.
PARTIESAUTHORIZED
.
split
(
','
)
for
(
let
j
=
0
,
h
=
signList
.
length
;
j
<
h
;
j
++
)
{
...
...
@@ -1876,7 +1876,7 @@ export default {
}
if
(
this
.
form
.
HTDFXX
.
length
>
0
)
{
for
(
let
i
=
0
,
l
=
this
.
form
.
HTDFXX
.
length
;
i
<
l
;
i
++
)
{
if
(
this
.
form
.
HTDFXX
[
i
].
AUTHORIZEDNAME
===
null
)
{
if
(
this
.
form
.
HTDFXX
[
i
].
AUTHORIZEDNAME
===
null
||
this
.
form
.
HTDFXX
[
i
].
AUTHORIZEDNAME
===
''
)
{
this
.
form
.
HTDFXX
[
i
].
AUTHORIZEDNAME
=
'()'
}
this
.
form
.
HTDFXX
[
i
].
listHTDFXX
=
this
.
form
.
HTDFXX
[
i
].
AUTHORIZEDNAME
.
split
(
','
)
...
...
@@ -2074,6 +2074,10 @@ export default {
this
.
form
.
HTDFXX
[
i
].
incomeArray
.
push
({
AUTHORIZEDNAMEChild
:
''
,
accessIdentify
:
''
})
},
addSign
()
{
if
(
this
.
form
.
SignOptions
===
undefined
)
{
this
.
$set
(
this
.
form
,
'SignOptions'
,
[])
}
console
.
log
(
'看看看看'
,
this
.
form
.
SignOptions
)
this
.
form
.
SignOptions
.
push
({
signName
:
''
,
sianID
:
''
})
},
delSign
(
index3
)
{
...
...
@@ -2168,10 +2172,12 @@ export default {
console
.
log
(
'保存数据啊啊啊啊'
,
this
.
form
.
HTDFXX
)
if
(
this
.
form
.
HTDFXX
.
length
>
0
)
{
for
(
let
i
=
0
,
l
=
this
.
form
.
HTDFXX
.
length
;
i
<
l
;
i
++
)
{
if
(
this
.
form
.
HTDFXX
[
i
].
incomeArray
!==
undefined
)
{
this
.
form
.
HTDFXX
[
i
].
AUTHORIZEDNAME
=
this
.
form
.
HTDFXX
[
i
].
incomeArray
.
map
(
item
=>
item
.
AUTHORIZEDNAMEChild
+
'('
+
item
.
accessIdentify
+
')'
).
join
(
','
)
}
}
}
if
(
this
.
form
.
SignOptions
!==
undefined
&&
this
.
form
.
SignOptions
!==
[]
&&
this
.
form
.
SignOptions
.
length
>
0
)
{
this
.
form
.
PARTIESAUTHORIZED
=
this
.
form
.
SignOptions
.
map
(
item
=>
item
.
signName
+
'('
+
item
.
sianID
+
')'
).
join
(
','
)
...
...
@@ -2179,6 +2185,86 @@ export default {
const
formJson
=
JSON
.
stringify
(
this
.
form
)
console
.
log
(
'审批'
,
this
.
form
.
SPXX
)
console
.
log
(
'全部参数'
,
formJson
)
if
(
this
.
form
.
FJXX
.
length
<=
0
)
{
this
.
showError
=
false
this
.
$refs
[
'form'
].
validate
((
valide
,
object
)
=>
{
if
(
valide
)
{
if
(
this
.
$route
.
query
.
type
===
'add'
)
{
this
.
$axios
({
method
:
'post'
,
url
:
'http://10.19.103.15:8090/contract/contract/add'
,
data
:
this
.
form
})
.
then
((
res
)
=>
{
if
(
res
.
data
.
code
===
'200'
)
{
this
.
$message
({
type
:
'success'
,
message
:
'操作成功'
})
this
.
$router
.
push
({
path
:
'/admin/list/index'
})
}
else
if
(
res
.
data
.
code
===
'4001'
)
{
this
.
$message
({
type
:
'warning'
,
message
:
res
.
data
.
msg
})
}
else
if
(
res
.
data
.
code
===
'4000'
)
{
this
.
$message
({
type
:
'warning'
,
message
:
res
.
data
.
msg
})
}
else
if
(
res
.
data
.
code
===
'1001'
)
{
this
.
$message
({
type
:
'warning'
,
message
:
res
.
data
.
message
})
}
})
.
catch
((
err
)
=>
{
return
err
})
}
else
if
(
this
.
$route
.
query
.
type
===
'update'
)
{
this
.
$axios
({
method
:
'put'
,
url
:
'http://10.19.103.15:8090/contract/contract/merge'
,
data
:
this
.
form
})
.
then
((
res
)
=>
{
if
(
res
.
data
.
code
===
'200'
)
{
this
.
$message
({
type
:
'success'
,
message
:
'操作成功'
})
this
.
$router
.
push
({
path
:
'/admin/list/index'
})
}
else
if
(
res
.
data
.
code
===
'4001'
)
{
this
.
$message
({
type
:
'warning'
,
message
:
res
.
data
.
msg
})
}
else
if
(
res
.
data
.
code
===
'4000'
)
{
this
.
$message
({
type
:
'warning'
,
message
:
res
.
data
.
msg
})
}
else
if
(
res
.
data
.
code
===
'1001'
)
{
this
.
$message
({
type
:
'warning'
,
message
:
res
.
data
.
message
})
}
})
.
catch
((
err
)
=>
{
return
err
})
}
}
else
{
this
.
scrollView
(
object
)
}
})
}
else
if
(
this
.
form
.
FJXX
.
length
>
0
)
{
if
(
this
.
form
.
FJXX
[
0
].
FILENAME
===
''
)
{
this
.
showError
=
true
}
else
{
...
...
@@ -2261,6 +2347,7 @@ export default {
}
})
}
}
},
scrollView
(
object
)
{
for
(
const
i
in
object
)
{
...
...
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