Commit 5c319392 by 王勇飞

pp

parent fe05e49f
......@@ -77,9 +77,9 @@ class calculatepriceCtl extends CtlBase {
"tm_name": o.tm_name,
"address": o.address,
"company": o.company,
"contact_person": o.contact_person,
"contact_phone": o.contact_phone,
"postal_code": o.postal_code
// "contact_person": o.contact_person,
// "contact_phone": o.contact_phone,
// "postal_code": o.postal_code
};
let url = settings.apiconfig.tmTrust;
let rc = System.getObject("util.execClient");
......
......@@ -374,13 +374,8 @@
} else if(!this.apply.customerContact) {
that.$message.warning("请填写客户联系人");
return;
} else if(!this.apply.mobile) {
that.$message.warning("请填写联系电话");
return;
} else if(!this.apply.zipCode) {
that.$message.warning("请填写邮政编码");
return;
}
that.$root.showMask();
var params = this.apply.type + ";" + this.apply.applyName + ";" + this.apply.identityCard + ";" + this.form.tmFormType
+ ";" + this.form.colorizedPicUrl + ";" + this.form.picUrl + ";" + this.apply.applyAddr;
......@@ -389,14 +384,22 @@
var url = window.location.href.split("/autosubmitinside")[0] + "/mobile2?" + "params=" + params + "#/createwts2";
console.log(url);
let tm_name = "";
if(this.form.tmFormType == 3) {
tm_name = this.form.tmName;
}
if(this.form.tmFormType == 4 || this.form.tmFormType == 7) {
tm_name = "图形";
}
if(this.form.tmFormType == 5) {
tm_name = this.form.tmName + "及图";
}
if(this.form.tmFormType)
this.$root.getReq("/web/calculatepriceCtl/tmtrust", {
assignor: this.apply.applyName,
tm_name: this.form.tmName,
tm_name: tm_name,
address: this.apply.applyAddr,
company: this.apply.principal,
contact_person: this.apply.customerContact,
contact_phone: this.apply.mobile,
postal_code: this.apply.zipCode,
}).then(function (d) {
if (d.data.tm_trust_url != "" && d.data.tm_trust_url != null) {
......
......@@ -1049,9 +1049,6 @@
} else if(!this.apply.mobile) {
that.$message.warning("请填写联系电话");
return;
} else if(!this.apply.zipCode) {
that.$message.warning("请填写邮政编码");
return;
}
that.$root.showMask();
var params = this.apply.type + ";" + this.apply.applyName + ";" + this.apply.identityCard + ";" + this.form.tmFormType
......@@ -1060,14 +1057,22 @@
console.log(params);
var url = window.location.href.split("/autosubmitinside")[0] + "/mobile2?" + "params=" + params + "#/createwts2";
console.log(url);
let tm_name = "";
if(this.form.tmFormType == 3) {
tm_name = this.form.tmName;
}
if(this.form.tmFormType == 4 || this.form.tmFormType == 7) {
tm_name = "图形";
}
if(this.form.tmFormType == 5) {
tm_name = this.form.tmName + "及图";
}
this.$root.getReq("/web/calculatepriceCtl/tmtrust", {
assignor: this.apply.applyName,
tm_name: this.form.tmName,
address: this.apply.applyAddr,
company: this.apply.principal,
contact_person: this.apply.customerContact,
contact_phone: this.apply.mobile,
postal_code: this.apply.zipCode,
}).then(function (d) {
if (d.data.tm_trust_url != "" && d.data.tm_trust_url != null) {
......@@ -1075,7 +1080,7 @@
} else {
that.$message.warning(`操作失败`);
}
that.$root.hideMask();
that.$root.hideMask();dd
}).catch(function (e) {
that.$root.hideMask();
that.$message.warning(`操作失败`);
......
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