Browse Source

2025-09-22

报价优化
master
fengyuan_yang 4 months ago
parent
commit
2009dc9c85
  1. 10
      src/views/modules/quote/index.vue

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

@ -515,8 +515,10 @@ export default {
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.dataList[0] !== undefined){
if (this.dataList[0] !== undefined) {
this.handleSelect(this.dataList[0]) this.handleSelect(this.dataList[0])
} else {
this.currentQuote = {}
} }
// if (index !== undefined){ // if (index !== undefined){
// this.handleSelect(this.dataList[index]) // this.handleSelect(this.dataList[index])
@ -531,13 +533,15 @@ export default {
}) })
this.isFilterSearch = false this.isFilterSearch = false
}, },
handleSelect(row){ handleSelect(row){
if (row){ if (row){
this.currentQuote = {...row} this.currentQuote = {...row}
}else {
} else {
this.currentQuote = {} this.currentQuote = {}
} }
}, },
handleSave(row){ handleSave(row){
this.$nextTick(()=>{ this.$nextTick(()=>{
if (this.$refs.saveForm){ if (this.$refs.saveForm){
@ -560,6 +564,7 @@ export default {
} }
this.saveVisible = true this.saveVisible = true
}, },
handleSizeChange(size){ handleSizeChange(size){
this.size = size this.size = size
if ( this.isFilterSearch === false){ if ( this.isFilterSearch === false){
@ -568,6 +573,7 @@ export default {
this.searchByAnyField(this.filterSearchData) this.searchByAnyField(this.filterSearchData)
} }
}, },
handlePageChange(no) { handlePageChange(no) {
this.no = no this.no = no
if ( this.isFilterSearch === false){ if ( this.isFilterSearch === false){

Loading…
Cancel
Save