Browse Source

2026-03-13

报价的材料页签,“单位成本”改成“物料成本”,添加两列:单位成本(单位用量*物料成本)、单位调机成本(调机用量*物料成本/MOQ)
master
fengyuan_yang 1 month ago
parent
commit
cb7a485445
  1. 44
      src/views/modules/quote/detail/primary/quoteDetailBom.vue

44
src/views/modules/quote/detail/primary/quoteDetailBom.vue

@ -192,7 +192,7 @@ export default {
columnProp: 'unitPrice',
headerAlign: "center",
align: "right",
columnLabel: '单位成本',
columnLabel: '物料成本',
columnHidden: false,
columnImage: false,
columnSortable: false,
@ -201,6 +201,42 @@ export default {
fixed: '',
columnWidth: 90,
},
{
userId: this.$store.state.user.name,
functionId: 5011,
serialNumber: '5011Table4CalcUnitCost',
tableId: "5011Table4",
tableName: "报价材料信息",
columnProp: 'calcUnitCost',
headerAlign: "center",
align: "right",
columnLabel: '单位成本',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 100,
},
{
userId: this.$store.state.user.name,
functionId: 5011,
serialNumber: '5011Table4CalcSetupCost',
tableId: "5011Table4",
tableName: "报价材料信息",
columnProp: 'calcSetupCost',
headerAlign: "center",
align: "right",
columnLabel: '单位调机成本',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 110,
},
{
userId: this.$store.state.user.name,
functionId: 5011,
@ -574,6 +610,12 @@ export default {
<template v-if="item.columnProp === 'partNo'">
<el-link @click="handleJumpToBom(scope.row)">{{ scope.row[item.columnProp] }}</el-link>
</template>
<template v-else-if="item.columnProp === 'calcUnitCost'">
<span>{{ (Number(scope.row.qtyPerAssembly) * Number(scope.row.unitPrice)).toFixed(6) }}</span>
</template>
<template v-else-if="item.columnProp === 'calcSetupCost'">
<span>{{ quoteDetail.qty ? (Number(scope.row.componentScrap) * Number(scope.row.unitPrice) / Number(quoteDetail.qty)).toFixed(6) : '' }}</span>
</template>
<template v-else>
<span v-if="!item.columnHidden">{{ scope.row[item.columnProp] }}</span>
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" style="width: 100px; height: 80px"/></span>

Loading…
Cancel
Save