|
|
@@ -209,7 +209,7 @@ module.exports = app => {
|
|
|
responseData.data = commonJson && commonJson[(data.is_tender ? 'tender_' : '') + 'contract_type'] ? commonJson[(data.is_tender ? 'tender_' : '') + 'contract_type'] : [];
|
|
|
break;
|
|
|
case 'set-contract-type':
|
|
|
- result = await ctx.service.subProject.saveCommonJsons(ctx.subProject.id, ['contract_', 'tender_contract_type'], data.contract_type);
|
|
|
+ result = await ctx.service.subProject.saveCommonJsons(ctx.subProject.id, ['contract_type', 'tender_contract_type'], data.contract_type);
|
|
|
break;
|
|
|
case 'get-contract-used':
|
|
|
const commonJson2 = ctx.subProject.common_json ? JSON.parse(ctx.subProject.common_json) : null;
|