Commit 9d6f514c authored by zhengyi's avatar zhengyi

新建报价单bug修复

parent 723e7d92
......@@ -1086,7 +1086,7 @@ export default {
}
},
activated() {
if (this.form.offerId != this.$route.query.id) {
if (this.form.offerId && this.form.offerId != this.$route.query.id) {
this.getOffer()
}
if (this.$route.query.copyId && this.form.copyId != this.$route.query.copyId) {
......@@ -1111,7 +1111,7 @@ export default {
this.addProduct()
}
if (this.$route.query.type == 1) {
if (this.$route.query.type && this.$route.query.type === 1) {
let res = await getCustomerContactsListByCustomer({ customerId: parseInt(this.$route.query.customerId || 0) })
this.customer = res.data.find((item) => item.isDefault)
......@@ -1145,7 +1145,7 @@ export default {
},
getOffer() {
//加了是否从全部客户列表中报价按钮进来的判断
if (this.$route.query !== 1) {
if (this.$route.query.type !== 1) {
getOffer(this.$route.query.id || this.$route.query.copyId).then((res) => {
let formData = res.data
formData.serviceType = formData.serviceType ? formData.serviceType.split(",").filter((item) => item != "") : []
......
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