|
|
|
@ -354,8 +354,9 @@ |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
<el-row :gutter="15"> |
|
|
|
<el-col :span="24"> |
|
|
|
<el-form-item style="height: 150px"> |
|
|
|
<el-col :span="24" style="position: relative;"> |
|
|
|
<span style="margin-right: 10px; color: #f56c6c; font-weight: bold; font-size: 14px; position: absolute; right: 0; top: 0; z-index: 2; pointer-events: none;">材料总金额:{{ materialTotalAmount.toFixed(2) }}</span> |
|
|
|
<el-form-item style="height: 150px;"> |
|
|
|
<template slot="label"> |
|
|
|
<el-button v-if="isAuth('107001:dataEntry')" style="margin-left: 2px;width: 115px;line-height: 1;font-size: 12px;" type="primary" @click="handleDataEntry">备注区:数据录入</el-button> |
|
|
|
</template> |
|
|
|
@ -1034,6 +1035,15 @@ export default { |
|
|
|
return 'N' |
|
|
|
} |
|
|
|
}, |
|
|
|
// 计算材料总金额 |
|
|
|
materialTotalAmount() { |
|
|
|
if (!this.testSoBomList || this.testSoBomList.length === 0) { |
|
|
|
return 0 |
|
|
|
} |
|
|
|
return this.testSoBomList.reduce((sum, item) => { |
|
|
|
return sum + (Number(item.totalCost) || 0) |
|
|
|
}, 0) |
|
|
|
} |
|
|
|
}, |
|
|
|
name: "test", |
|
|
|
components: { |
|
|
|
|