|
|
|
@ -3,7 +3,7 @@ import ProjectPartTable from "../../../../components/selector/table/projectPartT |
|
|
|
import {queryProjectPart} from "../../../../api/project/projectPart"; |
|
|
|
import { |
|
|
|
deleteQuoteDetail, |
|
|
|
queryQuoteDetail, |
|
|
|
queryQuoteDetail, queryQuoteDetailYield, |
|
|
|
saveQuoteDetail, |
|
|
|
updateQuoteDetail |
|
|
|
} from "../../../../api/quote/quoteDetail"; |
|
|
|
@ -231,6 +231,43 @@ export default { |
|
|
|
fixed: '', |
|
|
|
columnWidth: 120 |
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 5011, |
|
|
|
serialNumber: '5011Table2BomUnYield', |
|
|
|
tableId: '5011Table2', |
|
|
|
tableName: '报价详情信息表', |
|
|
|
columnProp: 'bomUnYield', |
|
|
|
headerAlign: 'center', |
|
|
|
align: 'right', |
|
|
|
columnLabel: 'BOM Unyield', |
|
|
|
columnHidden: false, |
|
|
|
columnImage: false, |
|
|
|
columnSortable: false, |
|
|
|
sortLv: 0, |
|
|
|
status: true, |
|
|
|
fixed: '', |
|
|
|
columnWidth: 120 |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 5011, |
|
|
|
serialNumber: '5011Table2AdjustBomUnYield', |
|
|
|
tableId: '5011Table2', |
|
|
|
tableName: '报价详情信息表', |
|
|
|
columnProp: 'adjustBomUnYield', |
|
|
|
headerAlign: 'center', |
|
|
|
align: 'right', |
|
|
|
columnLabel: '调整的BOM Unyield', |
|
|
|
columnHidden: false, |
|
|
|
columnImage: false, |
|
|
|
columnSortable: false, |
|
|
|
sortLv: 0, |
|
|
|
status: true, |
|
|
|
fixed: '', |
|
|
|
columnWidth: 130 |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 5011, |
|
|
|
@ -301,7 +338,8 @@ export default { |
|
|
|
status: true, |
|
|
|
fixed: '', |
|
|
|
columnWidth: 120 |
|
|
|
},{ |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 5011, |
|
|
|
serialNumber: '5011Table2OtherCost', |
|
|
|
@ -474,6 +512,96 @@ export default { |
|
|
|
fixed: '', |
|
|
|
columnWidth: 120 |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 5011, |
|
|
|
serialNumber: '5011Table2ProcessTime', |
|
|
|
tableId: '5011Table2', |
|
|
|
tableName: '报价详情信息表', |
|
|
|
columnProp: 'processTime', |
|
|
|
headerAlign: 'center', |
|
|
|
align: 'right', |
|
|
|
columnLabel: '处理时间', |
|
|
|
columnHidden: false, |
|
|
|
columnImage: false, |
|
|
|
columnSortable: false, |
|
|
|
sortLv: 0, |
|
|
|
status: true, |
|
|
|
fixed: '', |
|
|
|
columnWidth: 120 |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 5011, |
|
|
|
serialNumber: '5011Table2Yield', |
|
|
|
tableId: '5011Table2', |
|
|
|
tableName: '报价详情信息表', |
|
|
|
columnProp: 'yield', |
|
|
|
headerAlign: 'center', |
|
|
|
align: 'right', |
|
|
|
columnLabel: 'Yield', |
|
|
|
columnHidden: false, |
|
|
|
columnImage: false, |
|
|
|
columnSortable: false, |
|
|
|
sortLv: 0, |
|
|
|
status: true, |
|
|
|
fixed: '', |
|
|
|
columnWidth: 120 |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 5011, |
|
|
|
serialNumber: '5011Table2BomYield', |
|
|
|
tableId: '5011Table2', |
|
|
|
tableName: '报价详情信息表', |
|
|
|
columnProp: 'bomYield', |
|
|
|
headerAlign: 'center', |
|
|
|
align: 'right', |
|
|
|
columnLabel: 'BOM Yield', |
|
|
|
columnHidden: false, |
|
|
|
columnImage: false, |
|
|
|
columnSortable: false, |
|
|
|
sortLv: 0, |
|
|
|
status: true, |
|
|
|
fixed: '', |
|
|
|
columnWidth: 120 |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 5011, |
|
|
|
serialNumber: '5011Table2ParentAttritionRate', |
|
|
|
tableId: '5011Table2', |
|
|
|
tableName: '报价详情信息表', |
|
|
|
columnProp: 'parentAttritionRate', |
|
|
|
headerAlign: 'center', |
|
|
|
align: 'right', |
|
|
|
columnLabel: '母件损耗率', |
|
|
|
columnHidden: false, |
|
|
|
columnImage: false, |
|
|
|
columnSortable: false, |
|
|
|
sortLv: 0, |
|
|
|
status: true, |
|
|
|
fixed: '', |
|
|
|
columnWidth: 120 |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 5011, |
|
|
|
serialNumber: '5011Table2ChildAttritionRate', |
|
|
|
tableId: '5011Table2', |
|
|
|
tableName: '报价详情信息表', |
|
|
|
columnProp: 'childAttritionRate', |
|
|
|
headerAlign: 'center', |
|
|
|
align: 'right', |
|
|
|
columnLabel: '子件损耗率', |
|
|
|
columnHidden: false, |
|
|
|
columnImage: false, |
|
|
|
columnSortable: false, |
|
|
|
sortLv: 0, |
|
|
|
status: true, |
|
|
|
fixed: '', |
|
|
|
columnWidth: 120 |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 5011, |
|
|
|
@ -722,6 +850,7 @@ export default { |
|
|
|
createBy:this.saveQuoteDetail.createBy, |
|
|
|
active:'Y', |
|
|
|
status:'草稿', |
|
|
|
internalInquiryNo:this.quote.insideInquiryNo, |
|
|
|
} |
|
|
|
this.saveLoading = true; |
|
|
|
saveQuoteDetail(params).then(({data})=>{ |
|
|
|
@ -761,6 +890,21 @@ export default { |
|
|
|
this.$message.error(error); |
|
|
|
}) |
|
|
|
}, |
|
|
|
handleComputeYield(row){ |
|
|
|
let params = { |
|
|
|
id: row.id, |
|
|
|
} |
|
|
|
queryQuoteDetailYield(params).then(({data})=>{ |
|
|
|
if (data && data.code === 0){ |
|
|
|
this.$message.success(data.msg); |
|
|
|
this.handleQueryQuoteDetail(); |
|
|
|
}else { |
|
|
|
this.$message.warning(data.msg); |
|
|
|
} |
|
|
|
}).catch((error)=>{ |
|
|
|
this.$message.error(error); |
|
|
|
}) |
|
|
|
} |
|
|
|
}, |
|
|
|
watch:{ |
|
|
|
quote(newVal,oldVal){ |
|
|
|
@ -798,6 +942,7 @@ export default { |
|
|
|
</el-table-column> |
|
|
|
<el-table-column label="操作" fixed="right" align="center" width="120"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<a type="text" @click="handleComputeYield(scope.row)">计算</a> |
|
|
|
<a type="text" @click="handleSaveQuoteDetail(scope.row)">编辑</a> |
|
|
|
<a type="text" @click="handleDeleteQuoteDetail(scope.row)">删除</a> |
|
|
|
</template> |
|
|
|
|