|
@@ -205,13 +205,13 @@ module.exports = app => {
|
|
|
}
|
|
|
|
|
|
async getTpData(materialId) {
|
|
|
- const materialInfo = await this.ctx.material.getDataById(materialId);
|
|
|
+ const materialInfo = await this.ctx.service.material.getDataById(materialId);
|
|
|
const tp_data = {
|
|
|
m_tp: materialInfo.m_tp,
|
|
|
m_tax_tp: materialInfo.m_tax_tp,
|
|
|
}
|
|
|
if (materialInfo.is_stage_self) {
|
|
|
- const materialStageList = await this.ctx.materialStage.getAllDataByCondition({ where: { mid: materialId }});
|
|
|
+ const materialStageList = await this.ctx.service.materialStage.getAllDataByCondition({ where: { mid: materialId }});
|
|
|
const stage_tp = [];
|
|
|
for (const ms of materialStageList) {
|
|
|
stage_tp.push({
|