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,83 +1269,187 @@
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") {
/**提报接口 */
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("操作失败");
});
} else if (this.$root.channelName == "1688") {
console.log(this.$route.query.channelOrderNo, ">>>>>>>>>>>>>>>>>>>>>>>");
that.orderSubInfo = {
tm: that.form,
apply: that.apply,
nclones: that.nclOne,
itemCode: that.itemCode,
};
that.$root.loading = true;
var channelOrderNo = that.$root.copyParams({ channelOrderNo: that.$route.query.channelOrderNo }, "get1688ChannelOrderInfo", "/action/tmOrder/springBoard", "yes", "yes");
that.$root.postReq("/web/trademark/tmqueryCtl/doPost", channelOrderNo).then((d) => {
console.log(d);
that.orderSubInfo.channelOrder = d.data.channelOrder;
that.orderSubInfo.channelUser = d.data.channelUser;
}).then(() => {
console.log(that.orderSubInfo, '............................................');
var subInfo = that.$root.copyParams(that.orderSubInfo, "subExistTmOrder", "/action/tmOrder/springBoard", "yes", "yes");
that.$root.postReq("/web/trademark/tmqueryCtl/doPost", subInfo).then(function (d) {
console.log('nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn0', d);
switch (this.$root.channelName) {
case 'jd':
/**提报接口 */
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) {
var order = d.data;
that.toTop();
console.log(that.orderSubInfo, ",,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,");
that.$router.push({
path: `/${this.$root.channelName}/jdindentlist`,
query: {
channelUserId: that.$route.query.channelUserId,
}
});
that.$message.warning("订单提交成功");
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 '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,
apply: that.apply,
nclones: that.nclOne,
itemCode: that.itemCode,
};
that.$root.loading = true;
var channelOrderNo = that.$root.copyParams({ channelOrderNo: that.$route.query.channelOrderNo }, "get1688ChannelOrderInfo", "/action/tmOrder/springBoard", "yes", "yes");
that.$root.postReq("/web/trademark/tmqueryCtl/doPost", channelOrderNo).then((d) => {
console.log(d);
that.orderSubInfo.channelOrder = d.data.channelOrder;
that.orderSubInfo.channelUser = d.data.channelUser;
}).then(() => {
console.log(that.orderSubInfo, '............................................');
var subInfo = that.$root.copyParams(that.orderSubInfo, "subExistTmOrder", "/action/tmOrder/springBoard", "yes", "yes");
that.$root.postReq("/web/trademark/tmqueryCtl/doPost", subInfo).then(function (d) {
console.log('nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn0', d);
if (d.status == 0) {
var order = d.data;
that.toTop();
console.log(that.orderSubInfo, ",,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,");
that.$router.push({
path: `/${this.$root.channelName}/jdindentlist`,
query: {
channelUserId: that.$route.query.channelUserId,
}
});
that.$message.warning("订单提交成功");
} else {
that.$message.warning(d.msg);
}
}).then(() => {
that.$root.loading = false;
}).catch(function (e) {
that.$message.warning("操作失败", e);
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.$message.warning("操作失败", e);
that.$root.loading = false;
console.log(e);
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