Commit 6b96ddb8 authored by zhengyi's avatar zhengyi

复制、编辑报价单bug修复

parent 95d75c17
......@@ -1087,12 +1087,12 @@ export default {
}
},
activated() {
// if (this.$route.query.id && this.form.offerId !== this.$route.query.id) {
if (this.$route.query.id) {
if (this.$route.query.id && this.form.offerId !== this.$route.query.id) {
// if (this.$route.query.id) {
this.getOffer()
}
// if (this.$route.query.copyId && this.form.copyId !== this.$route.query.copyId) {
if (this.$route.query.copyId) {
if (this.$route.query.copyId && this.form.copyId !== this.$route.query.copyId) {
// if (this.$route.query.copyId) {
this.getOffer()
}
},
......@@ -1107,7 +1107,7 @@ export default {
getRegionList(4, 4).then((res) => (this.AddressCity = res.data))
competitorListAll().then((res) => (this.competitorList = res.data))
if (this.$route.query.id && this.$route.query.copyId) {
if (this.$route.query.id || this.$route.query.copyId) {
this.getOffer()
} else {
// alert(this.$route.query.customer.defaultContactPhone)
......@@ -1128,7 +1128,7 @@ export default {
}
}
} else {
this.form.relation = 1
// this.form.relation = 1
}
},
methods: {
......@@ -1198,6 +1198,7 @@ export default {
formData.channelId = formData.channelId || null
this.$set(this, "form", formData)
console.log("报价单归属", this.form.relation == 1? "发货人":"收货人")
// 接口只返回了发货人和收货人ID,还需要调用接口获取详细信息回显
getCustomerContactsSelect({
ids: [res.data.consigneeId, res.data.consignorId].join(",")
......
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