Commit f1d2f60e authored by zhengyi's avatar zhengyi

客户跳转报价创建页面携带客户信息bug修复

parent 406a0403
This diff is collapsed.
...@@ -991,9 +991,9 @@ export default { ...@@ -991,9 +991,9 @@ export default {
data() { data() {
return { return {
// 遮罩层 // 遮罩层
form: { // form: {
relation: 1, // CustomerLevel 的初始值 // relation: 1, // CustomerLevel 的初始值
}, // },
type: this.$route.query.type, type: this.$route.query.type,
contacts: null, contacts: null,
contactsList: [], contactsList: [],
...@@ -1011,7 +1011,10 @@ export default { ...@@ -1011,7 +1011,10 @@ export default {
// couponList: [], // couponList: [],
fee: {}, // 费用 fee: {}, // 费用
// 表单参数 // 表单参数
form: { ...createDefaultForm() }, form: {
relation: 1,
...createDefaultForm()
},
// 表单校验 // 表单校验
labelStyle: "width:120px", labelStyle: "width:120px",
...@@ -1059,8 +1062,18 @@ export default { ...@@ -1059,8 +1062,18 @@ export default {
}, },
computed: { computed: {
computedStandard() { computedStandard() {
if (this.$route.query.type == 1) { if (this.$route.query.type === 1) {
// 使用计算属性动态设置 'Standard' 的值 // 使用计算属性动态设置 'Standard' 的值
const type = this.$route.query.customer.type
if (type){
// 客户类型不为空时
const types = type.split(',');
if (types.includes("0")) {
this.form.relation = 1
}else {
this.form.relation = 2
}
}
switch (this.form.relation) { switch (this.form.relation) {
case 1: case 1:
if (this.$route.query.customer.defaultContactName != null) { if (this.$route.query.customer.defaultContactName != null) {
...@@ -1077,6 +1090,8 @@ export default { ...@@ -1077,6 +1090,8 @@ export default {
if (this.$route.query.customer.defaultContactPhone != null) { if (this.$route.query.customer.defaultContactPhone != null) {
this.form.consignorPhone = this.form.consignorPhone =
this.$route.query.customer.defaultContactPhone; this.$route.query.customer.defaultContactPhone;
this.form.consigorCountryCode =
this.$route.query.customer.defaultCountryCode;
this.form.consigneePhone = ""; this.form.consigneePhone = "";
this.form.consigeeCountryCode = ""; this.form.consigeeCountryCode = "";
} }
......
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