Commit 98315672 by 蒋勇

d

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