Browse Source

2026-01-27

销售报价查询优化
master
fengyuan_yang 1 month ago
parent
commit
c51c3ffbe6
  1. 6
      src/views/modules/quote/detail/quoteDetail.vue

6
src/views/modules/quote/detail/quoteDetail.vue

@ -1112,9 +1112,12 @@ export default {
watch:{ watch:{
quote(newVal,oldVal){ quote(newVal,oldVal){
if (newVal.id){ if (newVal.id){
// quote.id
if (newVal.id !== (oldVal && oldVal.id)) {
this.quoteDetail.profitRate = this.quote.markup this.quoteDetail.profitRate = this.quote.markup
this.quoteDetail.quoteProfitRate = this.quote.markup this.quoteDetail.quoteProfitRate = this.quote.markup
this.handleQueryQuoteDetail(); this.handleQueryQuoteDetail();
}
}else { }else {
this.dataList = []; this.dataList = [];
} }
@ -1149,9 +1152,12 @@ export default {
created() { created() {
this.quoteDetail.profitRate = this.quote.markup this.quoteDetail.profitRate = this.quote.markup
this.quoteDetail.quoteProfitRate = this.quote.markup this.quoteDetail.quoteProfitRate = this.quote.markup
// quote.id watch
if (this.quote.id) {
this.handleQueryQuoteDetail(); this.handleQueryQuoteDetail();
} }
} }
}
</script> </script>
<template> <template>

Loading…
Cancel
Save