|
@@ -617,6 +617,7 @@ module.exports = app => {
|
|
// 获取用户人验证手机号
|
|
// 获取用户人验证手机号
|
|
const pa = await ctx.service.projectAccount.getDataById(ctx.session.sessionUser.accountId);
|
|
const pa = await ctx.service.projectAccount.getDataById(ctx.session.sessionUser.accountId);
|
|
const auth_mobile = pa.auth_mobile;
|
|
const auth_mobile = pa.auth_mobile;
|
|
|
|
+ const unitList = await ctx.service.constructionUnit.getAllDataByCondition({ where: { pid: ctx.session.sessionProject.id } });
|
|
const renderData = {
|
|
const renderData = {
|
|
tender,
|
|
tender,
|
|
change,
|
|
change,
|
|
@@ -635,6 +636,7 @@ module.exports = app => {
|
|
upUnit: change.up_decimal ? change.up_decimal : ctx.tender.info.decimal.up,
|
|
upUnit: change.up_decimal ? change.up_decimal : ctx.tender.info.decimal.up,
|
|
authMobile: auth_mobile,
|
|
authMobile: auth_mobile,
|
|
shenpiConst,
|
|
shenpiConst,
|
|
|
|
+ unitList,
|
|
jsFiles: this.app.jsFiles.common.concat(this.app.jsFiles.change.information),
|
|
jsFiles: this.app.jsFiles.common.concat(this.app.jsFiles.change.information),
|
|
preUrl: '/tender/' + ctx.tender.id + '/change/' + ctx.change.cid + '/information',
|
|
preUrl: '/tender/' + ctx.tender.id + '/change/' + ctx.change.cid + '/information',
|
|
precision: ctx.tender.info.precision,
|
|
precision: ctx.tender.info.precision,
|
|
@@ -649,7 +651,6 @@ module.exports = app => {
|
|
columns: ['id', 'name', 'company', 'role', 'enable', 'is_admin', 'account_group'],
|
|
columns: ['id', 'name', 'company', 'role', 'enable', 'is_admin', 'account_group'],
|
|
});
|
|
});
|
|
renderData.accountList = accountList;
|
|
renderData.accountList = accountList;
|
|
- const unitList = await ctx.service.constructionUnit.getAllDataByCondition({ where: { pid: ctx.session.sessionProject.id } });
|
|
|
|
renderData.accountGroup = unitList.map(item => {
|
|
renderData.accountGroup = unitList.map(item => {
|
|
const groupList = accountList.filter(item1 => item1.company === item.name);
|
|
const groupList = accountList.filter(item1 => item1.company === item.name);
|
|
return { groupName: item.name, groupList };
|
|
return { groupName: item.name, groupList };
|