Commit 98315672 by 蒋勇

d

parent 5706edb2
......@@ -7,5 +7,9 @@ class ChannelCtl extends CtlBase {
constructor() {
super("common", CtlBase.getServiceName(ChannelCtl));
}
async refQuery(pobj, qobj, req) {
let rtn=await this.service.refQuery(pobj);
return rtn
}
}
module.exports = ChannelCtl;
......@@ -54,6 +54,11 @@ class CompanyCtl extends CtlBase {
}
return system.getResult({orgJson:rtnjson})
}
async refQuery(pobj, qobj, req) {
let rtn=await this.service.refQuery(pobj);
return rtn
}
}
module.exports = CompanyCtl;
......@@ -4,6 +4,22 @@ const appconfig=system.getSysConfig();
module.exports = (db, DataTypes) => {
//定价类型
return db.define("productprice", {
sptags:{//交付商标签
type: DataTypes.STRING,
allowNull: true,
},
channeltags:{//渠道标签
type: DataTypes.STRING,
allowNull: true,
},
skucode:{//自定义简码
type: DataTypes.STRING,
allowNull: true,
},
skuname:{//自定义名称
type: DataTypes.STRING,
allowNull: true,
},
pname:{//产品名称
type: DataTypes.STRING,
allowNull: true,
......
......@@ -32,7 +32,9 @@ class ProductService extends ServiceBase {
pricestrategy_id: stragetyid,
pname:p.name,
strategyitems:tmpdic[stragetyid+''],
company_id:p.company_id
company_id:p.company_id,
skucode:p.skucode?p.skucode:this.getUUID(),
skuname:p.skuname?p.skuname:p.name,
}
productprices.push(pps)
})
......@@ -85,7 +87,9 @@ class ProductService extends ServiceBase {
pricestrategy_id: stragetyid,
pname:p.name,
strategyitems:tmpdic[stragetyid+''],
company_id:p.company_id
company_id:p.company_id,
skucode:this.getUUID(),
skuname:p.name,
}
productprices.push(pps)
})
......
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