Commit 17b260bd by 刘泽奇

123

parent a2526eb4
......@@ -1207,7 +1207,6 @@
console.log(item, '111111111111111111111111111111111111111');
item.checked = item.nclThree.length;
this.showConfrim = true;
if (agree) {
if (!this.form.tmName || !this.form.colorizedPicUrl) {
this.$message.warning("请完善信息");
......@@ -1270,7 +1269,8 @@
this.form.tmName = this.form.tmFormType == "5" ? this.form.tmName + '及图' : this.form.tmName;
this.savehistory();
console.log(this.$root.channelName, "///////////////");
if (this.$root.channelName == "jd" || this.$root.channelName == "gsbhome") {
switch (this.$root.channelName) {
case 'jd':
/**提报接口 */
var obj = {
......@@ -1302,7 +1302,41 @@
that.$root.loading = false;
that.$message.warning("操作失败");
});
} else if (this.$root.channelName == "1688") {
break;
case 'gsbhome':
/**提报接口 */
var obj = {
tm: that.form,
apply: that.apply,
nclones: that.nclOne,
itemCode: that.dataList[0].channelItemCode,
channelUser: {
channelUserId: that.$route.query.channelUserId
},
channelOrder: {
quantity: 1,
payStatus: "dfk"
}
};
obj.tm.tmFormType = that.form.tmFormType.toString();
this.$root.loading = true;
var jdObj = that.$root.copyParams(obj, "subTmOrder", "/action/tmOrder/springBoard", "yes", "yes");
that.$root.postReq("/web/trademark/tmqueryCtl/doPost", jdObj).then(function (d) {
that.$root.loading = false;
console.log(`///////////////////////////////`, d);
if (d.status == 0) {
location.href = d.data.payUrl;
} else {
console.log(d, "subTmOrder..........");
that.$message.warning(d.msg);
}
}).catch(function (e) {
that.$root.loading = false;
that.$message.warning("操作失败");
});
break;
case '1688':
console.log(this.$route.query.channelOrderNo, ">>>>>>>>>>>>>>>>>>>>>>>");
that.orderSubInfo = {
tm: that.form,
......@@ -1344,8 +1378,77 @@
that.$root.loading = false;
console.log(e);
});
})
});
break;
case 'bw':
var obj = {
tm: that.form,
apply: that.apply,
nclones: that.nclOne,
itemCode: that.dataList[0].channelItemCode,
channelUser: {
channelUserId: that.$route.query.channelUserId
},
channelOrder: {
quantity: 1,
payStatus: "dfk"
}
};
obj.tm.tmFormType = that.form.tmFormType.toString();
this.$root.loading = true;
var jdObj = that.$root.copyParams(obj, "subTmOrder", "/action/tmOrder/springBoard", "yes", "yes");
that.$root.postReq("/web/trademark/tmqueryCtl/doPost", jdObj).then(function (d) {
that.$root.loading = false;
console.log(`///////////////////////////////`, d);
if (d.status == 0) {
location.href = d.data.payUrl;
} else {
console.log(d, "subTmOrder..........");
that.$message.warning(d.msg);
}
}).catch(function (e) {
that.$root.loading = false;
that.$message.warning("操作失败");
});
break;
default:
/**提报接口 */
var obj = {
tm: that.form,
apply: that.apply,
nclones: that.nclOne,
itemCode: that.dataList[0].channelItemCode,
channelUser: {
channelUserId: that.$route.query.channelUserId
},
channelOrder: {
quantity: 1,
payStatus: "dfk"
}
};
obj.tm.tmFormType = that.form.tmFormType.toString();
this.$root.loading = true;
var jdObj = that.$root.copyParams(obj, "subTmOrder", "/action/tmOrder/springBoard", "yes", "yes");
that.$root.postReq("/web/trademark/tmqueryCtl/doPost", jdObj).then(function (d) {
that.$root.loading = false;
console.log(`///////////////////////////////`, d);
if (d.status == 0) {
location.href = d.data.payUrl;
} else {
console.log(d, "subTmOrder..........");
that.$message.warning(d.msg);
}
}).catch(function (e) {
that.$root.loading = false;
that.$message.warning("操作失败");
});
break;
}
}
......
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