Browse Source

20240924

java8
qiezi 1 year ago
parent
commit
1757ce0a21
  1. 5
      src/views/modules/quote/index.vue
  2. 6
      src/views/modules/quote/quotes.vue

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

@ -512,7 +512,7 @@ export default {
}else {
this.$message.warning(data.msg)
}
this.handleSearch();
this.handleSearch(0);
this.saveLoading = false
}).catch((error)=>{
this.$message.error(error)
@ -784,6 +784,9 @@ export default {
this.detailFlag = false;
}
},
'saveQuote.currency'(newVal, oldVal){
this.saveQuote.currency = newVal.toUpperCase()
}
},
activated() {
if (this.$route.params.ids){

6
src/views/modules/quote/quotes.vue

@ -385,6 +385,7 @@ export default {
columnWidth: 80
}
],
quoteLoading:false,
}
},
methods:{
@ -434,7 +435,9 @@ export default {
item.createBy = this.$store.state.user.name
return item
})
this.quoteLoading = true
batchSaveQuote(params).then(({data})=>{
this.quoteLoading = false
if (data && data.code === 0){
this.$message.success(data.msg);
this.handleQuery();
@ -448,6 +451,7 @@ export default {
this.$message.warning(data.msg);
}
}).catch((error)=>{
this.quoteLoading = false
this.$message.error(error);
})
},
@ -541,7 +545,7 @@ export default {
<el-col :span="3">
<el-form-item label=" ">
<el-button type="primary" @click="handleQuery">查询</el-button>
<el-button type="primary" @click="handleQuote" v-if="!isComponent">报价</el-button>
<el-button type="primary" v-loading="quoteLoading" @click="handleQuote" v-if="!isComponent">报价</el-button>
</el-form-item>
</el-col>
</el-row>

Loading…
Cancel
Save