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
ee41d339
Commit
ee41d339
authored
Mar 05, 2024
by
danfuman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
dc6fcd0b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
41 additions
and
15 deletions
+41
-15
index.vue
.../projectCostLedger/detail/components/DirectCost/index.vue
+41
-13
index.vue
...ojectCostLedger/detail/components/OtherProjects/index.vue
+0
-2
No files found.
dsk-operate-ui/src/views/projectCostLedger/detail/components/DirectCost/index.vue
View file @
ee41d339
<
template
>
<
template
>
<div
class=
"directCost-container"
>
<div
class=
"directCost-container"
>
<div
class=
"directCost-main"
>
<div
class=
"directCost-main"
>
<
div
class=
"search"
>
<
!--
<div
class=
"search"
>
--
>
<
el-select
v-model=
"date"
placeholder=
"请选择"
>
<
!--
<el-select
v-model=
"date"
placeholder=
"请选择"
>
--
>
<
el-option
v-for=
"(item,index) in datelist"
:label=
"item.dictLabel"
:value=
"item.dictValue"
:key=
"index"
></el-option
>
<
!--
<el-option
v-for=
"(item,index) in datelist"
:label=
"item.dictLabel"
:value=
"item.dictValue"
:key=
"index"
></el-option>
--
>
<
/el-select
>
<
!--
</el-select>
--
>
<
/div
>
<
!--
</div>
--
>
<div
class=
"directCost-cont"
>
<div
class=
"directCost-cont"
>
<div
class=
"left"
>
<div
class=
"left"
>
<div
class=
"left-side-menu"
>
<div
class=
"left-side-menu"
>
...
@@ -79,13 +79,13 @@
...
@@ -79,13 +79,13 @@
<el-input
v-model=
"ruleForm.unit"
placeholder=
"请输入单位"
></el-input>
<el-input
v-model=
"ruleForm.unit"
placeholder=
"请输入单位"
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"招标控制价单价"
prop=
"tenderControlUnitPrice"
>
<el-form-item
label=
"招标控制价单价"
prop=
"tenderControlUnitPrice"
>
<el-input
v-model=
"ruleForm.tenderControlUnitPrice"
placeholder=
"请输入招标控制价单价"
></el-input>
<el-input
v-model=
"ruleForm.tenderControlUnitPrice"
oninput=
"value=value.replace(/[^\d]/g,'')"
placeholder=
"请输入招标控制价单价"
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"不含税成本单价"
prop=
"excludeTaxCbUnitPrice"
>
<el-form-item
label=
"不含税成本单价"
prop=
"excludeTaxCbUnitPrice"
>
<el-input
v-model=
"ruleForm.excludeTaxCbUnitPrice"
placeholder=
"请输入不含税成本单价"
></el-input>
<el-input
v-model=
"ruleForm.excludeTaxCbUnitPrice"
oninput=
"value=value.replace(/[^\d]/g,'')"
placeholder=
"请输入不含税成本单价"
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"含税成本单价"
prop=
"includeTaxCbUnitPrice"
>
<el-form-item
label=
"含税成本单价"
prop=
"includeTaxCbUnitPrice"
>
<el-input
v-model=
"ruleForm.includeTaxCbUnitPrice"
placeholder=
"请输入含税成本单价"
></el-input>
<el-input
v-model=
"ruleForm.includeTaxCbUnitPrice"
oninput=
"value=value.replace(/[^\d]/g,'')"
placeholder=
"请输入含税成本单价"
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"特征描述"
>
<el-form-item
label=
"特征描述"
>
<el-input
type=
"textarea"
v-model=
"ruleForm.projectFeature"
placeholder=
"请输入特征描述"
></el-input>
<el-input
type=
"textarea"
v-model=
"ruleForm.projectFeature"
placeholder=
"请输入特征描述"
></el-input>
...
@@ -93,7 +93,7 @@
...
@@ -93,7 +93,7 @@
</el-form>
</el-form>
<div
slot=
"footer"
class=
"dialog-footer"
>
<div
slot=
"footer"
class=
"dialog-footer"
>
<el-button
@
click=
"dialogVisible=false"
>
取消
</el-button>
<el-button
@
click=
"dialogVisible=false"
>
取消
</el-button>
<el-button
type=
"primary"
>
确定增加
</el-button>
<el-button
type=
"primary"
@
click=
"handleAdd"
>
确定增加
</el-button>
</div>
</div>
</el-dialog>
</el-dialog>
</div>
</div>
...
@@ -158,16 +158,16 @@ export default {
...
@@ -158,16 +158,16 @@ export default {
menuDetails
:{},
menuDetails
:{},
menuOptions
:
{
menuOptions
:
{
nodeName
:
"menuName"
,
nodeName
:
"menuName"
,
nodeValue
:
"menu
Id
"
,
nodeValue
:
"menu
Name
"
,
children
:
"childrenList"
children
:
"childrenList"
},
},
detailsId
:
''
,
};
};
},
},
watch
:
{
watch
:
{
projectDetailInfo
:
{
projectDetailInfo
:
{
handler
(
newValue
)
{
handler
(
newValue
)
{
this
.
comProjectDetailInfo
=
newValue
?
newValue
:
{};
this
.
comProjectDetailInfo
=
newValue
?
newValue
:
{};
this
.
getCbDirectExpenseMenuTreeApi
(
'1760222923030876161'
)
this
.
getCbDirectExpenseList
(
'1763446872284012544'
)
this
.
getCbDirectExpenseList
(
'1763446872284012544'
)
// this.getProjectOtherStatistics(this.comProjectDetailInfo.projectId)
// this.getProjectOtherStatistics(this.comProjectDetailInfo.projectId)
// this.getProjectOtherStatistics('1762014527685136385')
// this.getProjectOtherStatistics('1762014527685136385')
...
@@ -185,7 +185,7 @@ export default {
...
@@ -185,7 +185,7 @@ export default {
},
},
//可访问data属性
//可访问data属性
created
()
{
created
()
{
this
.
getCbDirectExpenseMenuTreeApi
(
'1760222923030876161'
)
},
},
mounted
()
{
mounted
()
{
...
@@ -203,6 +203,11 @@ export default {
...
@@ -203,6 +203,11 @@ export default {
const
_tempArray
=
result
.
data
;
const
_tempArray
=
result
.
data
;
this
.
menuDetails
=
_tempArray
this
.
menuDetails
=
_tempArray
this
.
menuTreeList
.
push
(
_tempArray
);
this
.
menuTreeList
.
push
(
_tempArray
);
const
defaultCurrent
=
this
.
findMenuNode
(
this
.
menuTreeList
,
"土石方部分"
);
console
.
log
(
defaultCurrent
)
if
(
defaultCurrent
)
{
this
.
defaultActive
=
defaultCurrent
.
menuName
;
}
}
}
}
catch
(
error
)
{
}
catch
(
error
)
{
...
@@ -210,6 +215,7 @@ export default {
...
@@ -210,6 +215,7 @@ export default {
},
},
async
getCbDirectExpenseList
(
params
)
{
async
getCbDirectExpenseList
(
params
)
{
try
{
try
{
const
result
=
await
getCbDirectExpenseList
(
params
);
const
result
=
await
getCbDirectExpenseList
(
params
);
if
(
result
.
code
==
200
)
{
if
(
result
.
code
==
200
)
{
const
_dataArray
=
result
.
data
;
const
_dataArray
=
result
.
data
;
...
@@ -232,7 +238,19 @@ export default {
...
@@ -232,7 +238,19 @@ export default {
return
''
;
return
''
;
},
},
handleDialogVisible
(
row
){
handleDialogVisible
(
row
){
this
.
dialogVisible
=
true
this
.
dialogVisible
=
true
;
console
.
log
(
row
)
this
.
detailsId
=
row
.
id
;
},
handleAdd
(){
this
.
ruleForm
.
qingId
=
this
.
detailsId
cbDirectExpenseAdd
(
JSON
.
stringify
(
this
.
ruleForm
)).
then
(
res
=>
{
if
(
res
.
code
==
200
){
this
.
dialogVisible
=
false
this
.
getCbDirectExpenseList
(
'1763446872284012544'
)
}
})
},
},
handleDelete
(
row
){
handleDelete
(
row
){
this
.
$confirm
(
'是否删除费用项?'
,
'提示'
,
{
this
.
$confirm
(
'是否删除费用项?'
,
'提示'
,
{
...
@@ -256,6 +274,16 @@ export default {
...
@@ -256,6 +274,16 @@ export default {
});
});
});
});
},
},
findMenuNode
(
tree
,
nodeName
)
{
console
.
log
(
tree
)
for
(
const
item
of
tree
)
{
if
(
item
.
menuName
==
nodeName
)
return
item
;
if
(
item
.
childrenList
instanceof
Array
)
{
const
result
=
this
.
findMenuNode
(
item
.
childrenList
,
nodeName
);
if
(
result
)
return
result
;
}
}
},
},
},
}
}
</
script
>
</
script
>
...
...
dsk-operate-ui/src/views/projectCostLedger/detail/components/OtherProjects/index.vue
View file @
ee41d339
...
@@ -277,8 +277,6 @@ export default {
...
@@ -277,8 +277,6 @@ export default {
}
}
},
},
select
(
menuPath
,
menuPathArray
){
select
(
menuPath
,
menuPathArray
){
console
.
log
(
menuPath
)
console
.
log
(
menuPathArray
)
this
.
defaultActive
=
menuPath
;
this
.
defaultActive
=
menuPath
;
let
param
=
{
let
param
=
{
projectId
:
this
.
comProjectDetailInfo
.
projectId
,
projectId
:
this
.
comProjectDetailInfo
.
projectId
,
...
...
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