Browse Source

2026-02-26

待报价清单跳转销售报价优化
master
fengyuan_yang 12 hours ago
parent
commit
3f8fd38393
  1. 19
      src/views/modules/quote/index.vue

19
src/views/modules/quote/index.vue

@ -1189,14 +1189,20 @@ export default {
size:this.size,
createBy:this.$store.state.user.name,
}
this.searchLoading = true
queryQuotePage(params).then(({data})=>{
if (data && data.code === 0){
this.dataList = data.rows
this.total = data.total
if (this.total > 0){
this.currentQuote = {...this.dataList[0]}
//
this.$router.replace({name: 'quote-index', params: {}})
//
this.$message.success(`已定位到新建的报价单:${this.dataList[0].quoteVersionNo || ''}`)
}else {
this.currentQuote = {}
this.$message.warning('未查询到对应的报价单')
}
}else {
this.$message.error(data.msg)
@ -1462,10 +1468,14 @@ export default {
if (!this.isMenu){
return
}
// ids
if (this.$route.params.ids){
this.handleQueryByIds();
} else if (this.$route.params.type === 'tokenLogin') {
return //
}
// OA
if (this.$route.params.type === 'tokenLogin') {
if (this.$route.params.docNo) {
this.quoteForm = {
...this.quote,
@ -1474,13 +1484,18 @@ export default {
}
}
this.handleSearch(0);
} else if (this.$route.params.type === 'project'){
return
}
//
if (this.$route.params.type === 'project'){
this.quoteForm = {
...this.quote,
site: this.$store.state.user.site,
quoteVersionNo: this.$route.params.quoteVersionNo,
}
this.handleSearch(0);
return
}
}
}

Loading…
Cancel
Save