提交 92fca372 编写于 作者: guangjun.yang's avatar guangjun.yang

绑定项目和订单的关系

上级 1245bf42
......@@ -809,10 +809,18 @@ export default {
return getWebPageUrl(path);
},
// 绑定项目和订单的关系(idType=1)
// 绑定项目和订单的关系(idType=1),这里只判断cardType是否为4
createRelation(projectId, orderId) {
this.POST(`cme/projectCard/correlation/1/${projectId}/${orderId}`, {
channel: 3
let idType = 1, channel = 1;
if(this.goods.cardType == 4) {
idType = 2;
}
if(this.isWeb) {
channel = 3;
}
let cardType = this.goods.cardType;
this.POST(`cme/projectCard/correlation/${idType}/${projectId}/${orderId}`, {
channel: channel
}).then(res => {
if (res.code == "000000") {
//
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册