|
|
|
@ -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> |
|
|
|
|