Browse Source

2025-11-12

测试申请新增编辑对话框里增加材料总金额
master
fengyuan_yang 2 months ago
parent
commit
8e054463d8
  1. 14
      src/views/modules/test/requestForTest.vue

14
src/views/modules/test/requestForTest.vue

@ -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: {

Loading…
Cancel
Save