Commit 12299a80 by 孙亚楠

d

parent 4de96ecc
......@@ -10,6 +10,16 @@ class ProductCtl extends CtlBase {
async getPage (pobj, pobj2, req) {
try {
let res = await this.prodSve.getPage(pobj);
if(res.status!=0 || !res.data || res.data.rows.length==0){
return res;
}
for(let item of res.data.rows){
if(item.product_type=='2'){
item.price = "分开计价";
}else if(item.product_type=='1'){
item.price = item.price + '元/份';
}
}
return res
} catch (error) {
return system.getResultFail(500, err.message)
......
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