Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dsk-operate-sys-cscec
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
fulixin
dsk-operate-sys-cscec
Commits
fb1541e8
Commit
fb1541e8
authored
Feb 29, 2024
by
huangjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*
parent
9fc65833
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
13 deletions
+20
-13
index.js
dsk-operate-ui/src/api/projectCostLedger/index.js
+2
-2
index.vue
...rojectCostLedger/detail/components/MeasureItems/index.vue
+14
-10
index.vue
dsk-operate-ui/src/views/projectCostLedger/upload/index.vue
+4
-1
No files found.
dsk-operate-ui/src/api/projectCostLedger/index.js
View file @
fb1541e8
...
...
@@ -173,11 +173,11 @@ export function projectVolume(data) {
}
//措施费-获取实际成本月份列表
export
function
actualMonths
(
data
)
{
export
function
actualMonths
(
params
)
{
return
request
({
url
:
'/cb/cost/measures/actual/months'
,
method
:
'GET'
,
params
:
data
params
});
}
...
...
dsk-operate-ui/src/views/projectCostLedger/detail/components/MeasureItems/index.vue
View file @
fb1541e8
...
...
@@ -261,10 +261,10 @@
},
//可访问data属性
created
()
{
let
month
=
new
Date
().
getMonth
()
+
1
let
year
=
new
Date
().
getFullYear
()
this
.
expenseDate
=
year
+
(
month
>=
9
?
month
:
'0'
+
month
)
this
.
actualMonths
()
//
let month = new Date().getMonth() +1
//
let year = new Date().getFullYear()
//
this.expenseDate = year + (month>= 9? month:'0'+ month)
this
.
get
actualMonths
()
},
//计算集
computed
:
{
...
...
@@ -272,16 +272,20 @@
},
//方法集
methods
:
{
actualMonths
(){
const
formData
=
new
FormData
();
formData
.
append
(
"projectId"
,
this
.
projectId
);
formData
.
append
(
"id"
,
this
.
id
);
actualMonths
(
formData
).
then
(
res
=>
{
getactualMonths
(){
const
formDatas
=
new
FormData
();
formDatas
.
append
(
"projectId"
,
this
.
projectId
);
formDatas
.
append
(
"id"
,
this
.
id
);
console
.
log
(
formDatas
.
get
(
'projectId'
))
console
.
log
(
formDatas
.
get
(
'id'
))
actualMonths
(
formDatas
).
then
(
res
=>
{
let
data
=
res
.
data
data
.
forEach
(
item
=>
{
item
.
value
=
item
item
.
label
=
item
.
substring
(
1
,
4
)
+
'-'
+
item
.
substring
(
5
,
6
)
})
if
(
data
&&
data
.
length
>
0
)
this
.
expenseDate
=
data
[
0
].
value
})
},
select
(
menuPath
){
...
...
@@ -305,7 +309,7 @@
this
.
tableData
=
res
.
data
})
}
this
.
actualMonths
()
this
.
get
actualMonths
()
},
async
init
(
detail
=
''
)
{
try
{
...
...
dsk-operate-ui/src/views/projectCostLedger/upload/index.vue
View file @
fb1541e8
...
...
@@ -283,6 +283,7 @@
uploadtype
:
0
,
//上传的版块类型
visible
:
false
,
issub
:
false
,
//已填完数据可以开始解析
isclick
:
true
,
}
},
created
()
{
...
...
@@ -327,7 +328,7 @@
})
},
uplpro
(
type
){
if
(
!
this
.
prodetail
){
if
(
!
this
.
prodetail
&&
this
.
isclick
){
this
.
uploadtype
=
type
this
.
$refs
.
uploadpro
.
$el
.
querySelector
(
'input'
).
click
()
}
...
...
@@ -359,6 +360,7 @@
});
},
handleFileListChange
(
file
,
fileList
)
{
this
.
isclick
=
false
var
testmsg
=
file
.
name
.
substring
(
file
.
name
.
lastIndexOf
(
"."
)
+
1
);
const
extension
=
testmsg
===
"xlsx"
;
const
extension1
=
testmsg
===
"xls"
;
...
...
@@ -408,6 +410,7 @@
default
:
break
}
this
.
isclick
=
true
}
})
},
...
...
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