Browse Source

2024-03-14 报价修改

master
zelian_wu 2 years ago
parent
commit
f8e72a54ef
  1. 2
      src/api/quotation/quoteOfRouting.js
  2. 2
      src/views/modules/quotation/sellForQuotation.vue
  3. 25
      src/views/modules/quotation/sellForQuotation/quotationDetail/quoteRouting.vue
  4. 2
      src/views/modules/quotation/sellForQuotation/quoteDetail.vue

2
src/api/quotation/quoteOfRouting.js

@ -1,3 +1,3 @@
import {createAPI} from "../../utils/httpRequest";
export const getBomTreeStructure = (data)=>createAPI(`/quote/routing/tree/list`,'get',data);
export const getRoutingTreeStructure = (data)=>createAPI(`/quote/routing/tree/list`,'get',data);

2
src/views/modules/quotation/sellForQuotation.vue

@ -527,7 +527,7 @@ export default {
//
height:400,
//
activeTabName:"quotation_detail",
activeTabName:"quote_detail",
//dialog
insertDiaLogFlag:false,
quotationNoDialogFlag:false,

25
src/views/modules/quotation/sellForQuotation/quotationDetail/quoteRouting.vue

@ -1,5 +1,5 @@
<script>
import {getBomTreeStructure} from "../../../../../api/quotation/quoteOfRouting";
import { getRoutingTreeStructure} from "../../../../../api/quotation/quoteOfRouting";
export default {
name: "quoteRouting",
@ -27,18 +27,30 @@ export default {
},
methods:{
nodeClick(val){
if (val.list){
this.$nextTick(()=>{
this.$refs.tree.setCurrentKey(`${this.selectRouting[0]}-${this.selectRouting[1]}-${this.selectRouting[2]}`)
})
return
}
let arr = val.value.split('-');
arr[0] = parseInt(arr[0])
this.copyRouting = JSON.parse(JSON.stringify(this.selectRouting))
this.selectRouting = JSON.parse(JSON.stringify(arr))
if (this.copyRouting[0] !== this.selectRouting[0] || this.copyRouting[1] !== this.selectRouting[1] || this.copyRouting[2] !== this.selectRouting[2]){
this.changeSelect()
}
},
getBomTreeStructure(){
getRoutingTreeStructure(){
let params = {
site:this.detail.site,
testPartNo:this.detail.productNo
}
getBomTreeStructure(params).then(({data})=>{
getRoutingTreeStructure(params).then(({data})=>{
if (data && data.code === 0){
this.routingTreeStructure = data.rows;
this.$nextTick(()=>{
this.$refs.tree.setCurrentKey(`${this.selectBom[0]}-${this.selectBom[1]}-${this.selectBom[2]}`)
this.$refs.tree.setCurrentKey(`${this.selectRouting[0]}-${this.selectRouting[1]}-${this.selectRouting[2]}`)
})
}else {
this.$message.warning(data.msg)
@ -46,6 +58,9 @@ export default {
}).catch((error)=>{
this.$message.error(error)
})
},
changeSelect(){
}
}
}

2
src/views/modules/quotation/sellForQuotation/quoteDetail.vue

@ -273,7 +273,7 @@ export default {
this.$refs.property.getPropertyTemplatesItem();//
this.$refs.tool.initQuotationToolData();//
this.searchQuoteBomList();//bom
this.$refs.routing.getBomTreeStructure();
this.$refs.routing.getRoutingTreeStructure();
})
},
searchQuoteBomList(){

Loading…
Cancel
Save