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
66ccf57f
Commit
66ccf57f
authored
May 09, 2024
by
danfuman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
b459ca4a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
52 additions
and
40 deletions
+52
-40
index.vue
.../projectCostLedger/detail/components/DirectCost/index.vue
+28
-29
index.vue
...projectCostLedger/detail/components/FeedSummary/index.vue
+4
-4
index.vue
...rojectCostLedger/detail/components/MeasureItems/index.vue
+20
-7
No files found.
dsk-operate-ui/src/views/projectCostLedger/detail/components/DirectCost/index.vue
View file @
66ccf57f
...
...
@@ -33,52 +33,52 @@
highlight-current-row
>
<el-table-column
label=
"序号"
width=
"60"
align=
"left"
prop=
"index"
fixed=
"left"
></el-table-column>
<el-table-column
label=
"编码"
width=
"130"
prop=
"code"
></el-table-column>
<el-table-column
label=
"名称"
width=
"230"
prop=
"expenseName"
></el-table-column>
<el-table-column
label=
"清单"
width=
"110"
prop=
"expenseCategoryTag"
></el-table-column>
<el-table-column
label=
"项目特征"
width=
"340"
prop=
"projectFeature"
></el-table-column>
<el-table-column
label=
"单位"
width=
"110"
prop=
"unit"
></el-table-column>
<el-table-column
label=
"编码"
width=
"130"
prop=
"code"
:formatter=
"formatStatus"
></el-table-column>
<el-table-column
label=
"名称"
width=
"230"
prop=
"expenseName"
:formatter=
"formatStatus"
></el-table-column>
<el-table-column
label=
"清单"
width=
"110"
prop=
"expenseCategoryTag"
:formatter=
"formatStatus"
></el-table-column>
<el-table-column
label=
"项目特征"
width=
"340"
prop=
"projectFeature"
:formatter=
"formatStatus"
></el-table-column>
<el-table-column
label=
"单位"
width=
"110"
prop=
"unit"
:formatter=
"formatStatus"
></el-table-column>
<el-table-column
label=
"计划成本"
align=
"center"
>
<el-table-column
prop=
"engineeringVolumeExpression"
label=
"工程表达式"
width=
"120"
></el-table-column>
<el-table-column
prop=
"engineeringVolume"
label=
"工程量"
width=
"120"
></el-table-column>
<el-table-column
prop=
"cbSubject"
label=
"成本科目"
width=
"130"
></el-table-column>
<el-table-column
prop=
"tenderControlUnitPrice"
label=
"招标控制单价"
width=
"120"
></el-table-column>
<el-table-column
prop=
"tenderControlSumPrice"
label=
"招标控制合价"
width=
"120"
></el-table-column>
<el-table-column
prop=
"excludeTaxCbUnitPrice"
label=
"不含税成本单价"
width=
"122"
>
<el-table-column
prop=
"engineeringVolumeExpression"
label=
"工程表达式"
width=
"120"
:formatter=
"formatStatus"
></el-table-column>
<el-table-column
prop=
"engineeringVolume"
label=
"工程量"
width=
"120"
:formatter=
"formatStatus"
></el-table-column>
<el-table-column
prop=
"cbSubject"
label=
"成本科目"
width=
"130"
:formatter=
"formatStatus"
></el-table-column>
<el-table-column
prop=
"tenderControlUnitPrice"
label=
"招标控制单价"
width=
"120"
:formatter=
"formatStatus"
></el-table-column>
<el-table-column
prop=
"tenderControlSumPrice"
label=
"招标控制合价"
width=
"120"
:formatter=
"formatStatus"
></el-table-column>
<el-table-column
prop=
"excludeTaxCbUnitPrice"
label=
"不含税成本单价"
width=
"122"
:formatter=
"formatStatus"
>
</el-table-column>
<el-table-column
prop=
"excludeTaxCbSumPrice"
label=
"不含税成本合计"
width=
"122"
>
<el-table-column
prop=
"excludeTaxCbSumPrice"
label=
"不含税成本合计"
width=
"122"
:formatter=
"formatStatus"
>
<
template
slot-scope=
"scope"
>
{{
$decimalFormat
(
scope
.
row
.
excludeTaxCbSumPrice
)
}}
</
template
>
</el-table-column>
<el-table-column
prop=
"cbTaxSum"
label=
"成本税金合计"
width=
"120"
>
<el-table-column
prop=
"cbTaxSum"
label=
"成本税金合计"
width=
"120"
:formatter=
"formatStatus"
>
<
template
slot-scope=
"scope"
>
{{
$decimalFormat
(
scope
.
row
.
cbTaxSum
)
}}
</
template
>
</el-table-column>
<el-table-column
prop=
"includeTaxCbUnitPrice"
label=
"含税成本单价"
width=
"120"
>
<el-table-column
prop=
"includeTaxCbUnitPrice"
label=
"含税成本单价"
width=
"120"
:formatter=
"formatStatus"
>
<
template
slot-scope=
"scope"
>
{{
$decimalFormat
(
scope
.
row
.
includeTaxCbUnitPrice
)
}}
</
template
>
</el-table-column>
<el-table-column
prop=
"includeTaxCbSumPrice"
label=
"含税成本合价"
width=
"120"
>
<el-table-column
prop=
"includeTaxCbSumPrice"
label=
"含税成本合价"
width=
"120"
:formatter=
"formatStatus"
>
<
template
slot-scope=
"scope"
>
{{
$decimalFormat
(
scope
.
row
.
includeTaxCbSumPrice
)
}}
</
template
>
</el-table-column>
<el-table-column
prop=
"sumPriceDeviation"
label=
"合价偏差"
width=
"120"
>
<el-table-column
prop=
"sumPriceDeviation"
label=
"合价偏差"
width=
"120"
:formatter=
"formatStatus"
>
<
template
slot-scope=
"scope"
>
{{
$decimalFormat
(
scope
.
row
.
sumPriceDeviation
)
}}
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"盈亏率"
width=
"100"
prop=
"profitLossRatio"
></el-table-column>
<el-table-column
label=
"标准费用项"
width=
"100"
prop=
"standardCbItem"
></el-table-column>
<el-table-column
label=
"规格型号"
width=
"100"
prop=
"specificationModel"
></el-table-column>
<el-table-column
label=
"计算规则"
width=
"100"
prop=
"calculateRule"
></el-table-column>
<el-table-column
label=
"甲供材料"
width=
"150"
prop=
"supplierMaterial"
></el-table-column>
<el-table-column
label=
"备注"
width=
"120"
prop=
"remark"
></el-table-column>
<el-table-column
label=
"盈亏率"
width=
"100"
prop=
"profitLossRatio"
:formatter=
"formatStatus"
></el-table-column>
<el-table-column
label=
"标准费用项"
width=
"100"
prop=
"standardCbItem"
:formatter=
"formatStatus"
></el-table-column>
<el-table-column
label=
"规格型号"
width=
"100"
prop=
"specificationModel"
:formatter=
"formatStatus"
></el-table-column>
<el-table-column
label=
"计算规则"
width=
"100"
prop=
"calculateRule"
:formatter=
"formatStatus"
></el-table-column>
<el-table-column
label=
"甲供材料"
width=
"150"
prop=
"supplierMaterial"
:formatter=
"formatStatus"
></el-table-column>
<el-table-column
label=
"备注"
width=
"120"
prop=
"remark"
:formatter=
"formatStatus"
></el-table-column>
<el-table-column
label=
"操作"
min-width=
"120"
fixed=
"right"
>
<
template
slot-scope=
"scope"
>
<span
v-if=
"scope.row.expenseCategoryTag ==='清'"
style=
"color:#0081FF;font-size: 14px;cursor: pointer;"
@
click=
"handleDialogVisible(scope.row)"
>
增加费用项
</span>
...
...
@@ -116,10 +116,10 @@
<el-form-item
label=
"规格型号"
prop=
"specificationModel"
>
<el-input
v-model=
"ruleForm.specificationModel"
placeholder=
"请输入规格型号"
></el-input>
</el-form-item>
<el-form-item
label=
"计算规则"
prop=
"calculateRule"
>
<el-form-item
label=
"计算规则"
>
<el-input
v-model=
"ruleForm.calculateRule"
placeholder=
"请输入计算规则"
></el-input>
</el-form-item>
<el-form-item
label=
"甲供材料"
prop=
"supplierMaterial"
>
<el-form-item
label=
"甲供材料"
>
<el-input
v-model=
"ruleForm.supplierMaterial"
placeholder=
"请输入甲供材料"
></el-input>
</el-form-item>
<el-form-item
label=
"特征描述"
prop=
"projectFeature"
>
...
...
@@ -189,8 +189,6 @@ export default {
includeTaxCbUnitPrice
:{
required
:
true
,
message
:
'含税成本单价不能为空'
,
trigger
:
'blur'
},
// 限制必填
specificationModel
:{
required
:
true
,
message
:
'规格型号不能为空'
,
trigger
:
'blur'
},
// 限制必填
calculateRule
:{
required
:
true
,
message
:
'计算规则不能为空'
,
trigger
:
'blur'
},
// 限制必填
supplierMaterial
:{
required
:
true
,
message
:
'甲供材料不能为空'
,
trigger
:
'blur'
},
// 限制必填
projectFeature
:{
required
:
true
,
message
:
'特征描述不能为空'
,
trigger
:
'blur'
},
// 限制必填
},
dialogVisible
:
false
,
defaultActive
:
""
,
...
...
@@ -291,7 +289,6 @@ export default {
this
.
detailsId
=
row
.
id
;
},
handleAdd
(){
this
.
ruleForm
.
qingId
=
this
.
detailsId
cbDirectExpenseAdd
(
JSON
.
stringify
(
this
.
ruleForm
)).
then
(
res
=>
{
if
(
res
.
code
==
200
){
...
...
@@ -338,8 +335,10 @@ export default {
async
maxHeightInit
()
{
const
divHeight
=
this
.
$refs
.
rightTable
.
clientHeight
-
32
;
this
.
maxHeight
=
divHeight
;
console
.
log
(
'DIV的高度是:'
,
divHeight
);
}
},
formatStatus
:
function
(
row
,
column
,
cellValue
)
{
return
cellValue
?
cellValue
:
'-'
},
},
}
</
script
>
...
...
dsk-operate-ui/src/views/projectCostLedger/detail/components/FeedSummary/index.vue
View file @
66ccf57f
...
...
@@ -44,8 +44,8 @@
<custom-table
:tableData=
"dataForm.tableDataList"
:formColum=
"formColum"
:max-height=
"true"
:tableDataTotal=
"total"
:paging=
"false"
v-if=
"total > 0 && !tableLoading"
:header-cell-class-name=
"headerCellClassName"
:cell-class-name=
"cellClassName"
>
<
template
slot=
"action-field-bar"
slot-scope=
"scope"
>
<div
class=
"project-action-field-bar"
>
<span
class=
"push-project-use"
@
click=
"
pushProjectUse(scope.row)
"
:class=
"
{'is-emty-quantities' : rowHasLastPush(scope.rowIndex)}">修改本月差值
</span>
<div
class=
"project-action-field-bar"
v-if=
"rowCanEditInput(scope.rowIndex,hasTarget)"
>
<span
class=
"push-project-use"
@
click=
"
!rowHasLastPush(scope.rowIndex) ? pushProjectUse(scope.row) :''
"
:class=
"
{'is-emty-quantities' : rowHasLastPush(scope.rowIndex)}">修改本月差值
</span>
</div>
<!--
<div
class=
"project-action-field-bar"
v-if=
"rowCanEditInput(scope.rowIndex,hasTarget)"
>
-->
<!--
<span
class=
"push-project-use"
:class=
"
{'is-emty-quantities' : rowHasLastPush(scope.rowIndex)}"-->
...
...
@@ -306,7 +306,7 @@ export default {
{
label
:
'本月差值'
,
prop
:
"pushQuantities"
,
width
:
"110"
,
uid
:
v4
(),
slot
:
true
},
{
label
:
'累计差值'
,
prop
:
"cumulativeDifference"
,
width
:
"110"
,
uid
:
v4
(),
slot
:
true
},
{
label
:
'备注'
,
prop
:
"remark"
,
width
:
"115"
,
uid
:
v4
(),
slot
:
true
},
{
label
:
'操作'
,
prop
:
"action-field-bar"
,
width
:
"
99
"
,
uid
:
v4
(),
fixed
:
"right"
},
{
label
:
'操作'
,
prop
:
"action-field-bar"
,
width
:
"
120
"
,
uid
:
v4
(),
fixed
:
"right"
},
],
// 实体工程材料表头
entityMaterialsFormColum
:
[
...
...
@@ -341,7 +341,7 @@ export default {
{
label
:
'填写时间'
,
prop
:
"createTime"
,
minWidth
:
"160"
,
uid
:
v4
(),
slot
:
true
},
]
},
{
label
:
'操作'
,
prop
:
"action-field-bar"
,
width
:
"1
2
0"
,
uid
:
v4
(),
fixed
:
"right"
},
{
label
:
'操作'
,
prop
:
"action-field-bar"
,
width
:
"1
4
0"
,
uid
:
v4
(),
fixed
:
"right"
},
],
// 已记录月份集合
monthList
:
[],
...
...
dsk-operate-ui/src/views/projectCostLedger/detail/components/MeasureItems/index.vue
View file @
66ccf57f
...
...
@@ -525,15 +525,28 @@
addcost
()
{
this
.
cbVisible
=
true
},
getTreeData
(
data
){
for
(
var
i
=
0
;
i
<
data
.
length
;
i
++
){
//projectVolume/monthCostRate/costEffective
if
(
data
[
i
].
projectVolume
||
data
[
i
].
monthCostRate
||
data
[
i
].
costEffective
){
data
[
i
].
planMeasureId
=
data
[
i
].
id
data
[
i
].
actualId
=
data
[
i
].
id
data
[
i
].
month
=
this
.
expenseDate
data
[
i
].
monthCostRate
=
data
[
i
].
monthCostRate
?
parseInt
(
data
[
i
].
monthCostRate
.
replace
(
'%'
,
''
)):
null
}
if
(
data
[
i
].
children
){
this
.
getTreeData
(
data
[
i
].
children
);
}
else
{
data
[
i
].
children
=
undefined
;
}
}
return
data
;
},
addinputs
(){
let
tables
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
tableData
))
tables
.
forEach
(
item
=>
{
item
.
planMeasureId
=
item
.
id
item
.
actualId
=
item
.
id
item
.
month
=
this
.
expenseDate
item
.
monthCostRate
=
item
.
monthCostRate
?
parseInt
(
item
.
monthCostRate
.
replace
(
'%'
,
''
)):
null
})
saveBatch
(
JSON
.
stringify
(
tables
)).
then
(
res
=>
{
let
params
=
this
.
getTreeData
(
tables
)
saveBatch
(
JSON
.
stringify
(
params
)).
then
(
res
=>
{
if
(
res
.
code
==
200
){
this
.
$message
.
success
(
res
.
msg
)
this
.
isinput
=
false
...
...
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