Commit 33ec3ab4 by 蒋勇

d

parent 10cdd58c
...@@ -13,7 +13,7 @@ class ProductpriceService extends ServiceBase { ...@@ -13,7 +13,7 @@ class ProductpriceService extends ServiceBase {
where: { where: {
sptags: { [this.db.Op.like]: "%" + spname + "%" }, sptags: { [this.db.Op.like]: "%" + spname + "%" },
pname: { [this.db.Op.like]: "%" + productname + "%" }, pname: { [this.db.Op.like]: "%" + productname + "%" },
}, attributes: ['pname'], raw: true }, attributes: ['pname','strategyitems'], raw: true
}) })
//查询出地区 //查询出地区
let rs = await this.db.models.region.findAll({ attributes: ['code', 'name'], raw: true }) let rs = await this.db.models.region.findAll({ attributes: ['code', 'name'], raw: true })
...@@ -27,6 +27,7 @@ class ProductpriceService extends ServiceBase { ...@@ -27,6 +27,7 @@ class ProductpriceService extends ServiceBase {
let regionName = rpatharray[lstindex] let regionName = rpatharray[lstindex]
let regioninfo = {} let regioninfo = {}
regioninfo["label"] = regionName regioninfo["label"] = regionName
regioninfo["exAttr"]=r.strategyitems
//按照名字去取地区编码 //按照名字去取地区编码
let areainfos = rs.filter(f => { let areainfos = rs.filter(f => {
if (f.name.indexOf(regionName)>=0) { if (f.name.indexOf(regionName)>=0) {
......
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