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