Commit 76799a6d authored by dragondean@qq.com's avatar dragondean@qq.com

新建报价单后清理备选路线

parent 1c250b00
......@@ -985,6 +985,8 @@ export default {
if(this.form.channelId){
params.channelId = this.form.channelId
}
// 如果没有任何条件,不请求接口
if(!params.startCityId && !params.destCityId && !params.transportType && !params.channelId) return false
getOpenedRouterList(params).then(res => this.routerList = res.data)
},
// 计算体积
......@@ -1040,8 +1042,9 @@ export default {
createOffer(data).then(response => {
// 重置表单内容
this.$set(this, 'form', {...createDefaultForm()})
this.routerList = []
this.$nextTick(() => {
console.log('清理表单校验')
console.log('清理表单校验和路线')
this.$refs.form.clearValidate()
})
this.$modal.msgSuccess(this.$t("新增成功"));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment