Commit 7c905444 by linboxuan

tj

parent 4f1954b1
...@@ -23,6 +23,42 @@ class StatisticsCtl extends CtlBase { ...@@ -23,6 +23,42 @@ class StatisticsCtl extends CtlBase {
} }
} }
async submitService(pobj, qobj, req) {
try {
const rs = await this.service.submitService(pobj);
return system.getResult(rs);
} catch (err) {
return system.getResult(null, err.message)
}
}
async editsubmitService(pobj, qobj, req) {
try {
const rs = await this.service.editsubmitService(pobj);
return system.getResult(rs);
} catch (err) {
return system.getResult(null, err.message)
}
}
async getAllProductType(pobj, qobj, req) {
try {
const rs = await this.service.getAllProductType(pobj);
return system.getResult(rs);
} catch (err) {
return system.getResult(null, err.message)
}
}
async submitProductType(pobj, qobj, req) {
try {
const rs = await this.service.submitProductType(pobj);
return system.getResult(rs);
} catch (err) {
return system.getResult(null, err.message)
}
}
// 获取 产品信息 // 获取 产品信息
async getAllProducts(pobj, qobj, req) { async getAllProducts(pobj, qobj, req) {
try { try {
......
...@@ -7,6 +7,18 @@ class StatisticsService { ...@@ -7,6 +7,18 @@ class StatisticsService {
async getAllService(pobj) { async getAllService(pobj) {
return ToQiFuTong.getAllService(pobj); return ToQiFuTong.getAllService(pobj);
} }
async submitService(pobj) {
return ToQiFuTong.submitService(pobj);
}
async editsubmitService(pobj) {
return ToQiFuTong.editsubmitService(pobj);
}
async getAllProductType(pobj) {
return ToQiFuTong.getAllProductType(pobj);
}
async submitProductType(pobj) {
return ToQiFuTong.submitProductType(pobj);
}
async getAllProducts(pobj) { async getAllProducts(pobj) {
return ToQiFuTong.getAllProducts(); return ToQiFuTong.getAllProducts();
} }
......
...@@ -97,6 +97,35 @@ class BaseClient { ...@@ -97,6 +97,35 @@ class BaseClient {
}); });
return data; return data;
} }
async submitService(pobj) {
const data = await this.pushQiFuTong('/web/auth/accessAuth/springBoard', {
"actionType": "submitService",
"actionBody": pobj
});
return data;
}
async editsubmitService(pobj) {
const data = await this.pushQiFuTong('/web/auth/accessAuth/springBoard', {
"actionType": "editsubmitService",
"actionBody": pobj
});
return data;
}
async getAllProductType(pobj) {
const data = await this.pushQiFuTong('/web/action/product/springBoard', {
"actionType": "getAllProductType",
"actionBody": pobj
});
return data;
}
async submitProductType(pobj) {
const data = await this.pushQiFuTong('/web/action/product/springBoard', {
"actionType": "submitProductType",
"actionBody": pobj
});
return data;
}
async getAllProducts() { async getAllProducts() {
const data = await this.pushQiFuTong('/web/action/product/springBoard', { const data = await this.pushQiFuTong('/web/action/product/springBoard', {
"actionType": "getAllProducts", "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