Commit 7ceac47d by linboxuan

lin add editProductType

parent 33848e28
......@@ -59,6 +59,15 @@ class StatisticsCtl extends CtlBase {
}
}
async editProductType(pobj, qobj, req) {
try {
const rs = await this.service.editProductType(pobj);
return system.getResult(rs);
} catch (err) {
return system.getResult(null, err.message)
}
}
// 获取 产品信息
async getAllProducts(pobj, qobj, req) {
try {
......
......@@ -19,6 +19,9 @@ class StatisticsService {
async submitProductType(pobj) {
return ToQiFuTong.submitProductType(pobj);
}
async editProductType(pobj) {
return ToQiFuTong.editProductType(pobj);
}
async getAllProducts(pobj) {
return ToQiFuTong.getAllProducts();
}
......
......@@ -125,7 +125,13 @@ class BaseClient {
});
return data;
}
async editProductType(pobj) {
const data = await this.pushQiFuTong('/web/action/product/springBoard', {
"actionType": "editProductType",
"actionBody": pobj
});
return data;
}
async getAllProducts() {
const data = await this.pushQiFuTong('/web/action/product/springBoard', {
"actionType": "getAllProducts",
......
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