Commit f1d2f60e authored by zhengyi's avatar zhengyi

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

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