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

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

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

Loading…
Cancel
Save