|
|
@ -12,6 +12,7 @@ import BillOfMateriel from "./quotationDetail/billOfMateriel.vue"; |
|
|
import {Decimal} from "decimal.js"; |
|
|
import {Decimal} from "decimal.js"; |
|
|
import {searchQuoteBomHeader, searchQuoteBomList} from "../../../../api/quotation/quoteOfBom"; |
|
|
import {searchQuoteBomHeader, searchQuoteBomList} from "../../../../api/quotation/quoteOfBom"; |
|
|
import QuoteRouting from "./quotationDetail/quoteRouting.vue"; |
|
|
import QuoteRouting from "./quotationDetail/quoteRouting.vue"; |
|
|
|
|
|
import {searchQuoteRoutingHeader} from "../../../../api/quotation/quoteOfRouting"; |
|
|
|
|
|
|
|
|
export default { |
|
|
export default { |
|
|
name:'quoteDetail', |
|
|
name:'quoteDetail', |
|
|
@ -273,7 +274,30 @@ export default { |
|
|
this.$refs.property.getPropertyTemplatesItem();// 属性 |
|
|
this.$refs.property.getPropertyTemplatesItem();// 属性 |
|
|
this.$refs.tool.initQuotationToolData();//刀具 |
|
|
this.$refs.tool.initQuotationToolData();//刀具 |
|
|
this.searchQuoteBomList();//bom |
|
|
this.searchQuoteBomList();//bom |
|
|
this.$refs.routing.getRoutingTreeStructure(); |
|
|
|
|
|
|
|
|
this.searchQuoteRoutingHeader();// routing |
|
|
|
|
|
}) |
|
|
|
|
|
}, |
|
|
|
|
|
searchQuoteRoutingHeader(){ |
|
|
|
|
|
let params = { |
|
|
|
|
|
site:this.$store.state.user.site, |
|
|
|
|
|
quoteDetailId:this.quotationDetail.quotationDetailId, |
|
|
|
|
|
testPartNo:this.quotationDetail.productNo |
|
|
|
|
|
} |
|
|
|
|
|
searchQuoteRoutingHeader(params).then(({data})=>{ |
|
|
|
|
|
if (data && data.code === 0){ |
|
|
|
|
|
let row = data.row |
|
|
|
|
|
let arr = []; |
|
|
|
|
|
if (row){ |
|
|
|
|
|
arr[0] = row.version; |
|
|
|
|
|
arr[1] = row.routingType; |
|
|
|
|
|
arr[2] = row.alternativeNo; |
|
|
|
|
|
} |
|
|
|
|
|
this.$refs.routing.setSelectRouting(arr); |
|
|
|
|
|
}else { |
|
|
|
|
|
this.$message.warning(data.msg) |
|
|
|
|
|
} |
|
|
|
|
|
}).catch((error)=>{ |
|
|
|
|
|
this.$message.error(error) |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
searchQuoteBomList(){ |
|
|
searchQuoteBomList(){ |
|
|
|