Browse Source

2026-02-26

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

Loading…
Cancel
Save