Merge remote-tracking branch 'origin/dev_third_stage' into dev_third_stage
This commit is contained in:
+19
-3
@@ -5,20 +5,17 @@ import com.baomidou.mybatisplus.core.metadata.IPage;
|
|||||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||||
import com.jero.common.api.vo.Result;
|
import com.jero.common.api.vo.Result;
|
||||||
import com.jero.common.aspect.annotation.AutoLog;
|
import com.jero.common.aspect.annotation.AutoLog;
|
||||||
import com.jero.common.aspect.annotation.PermissionData;
|
|
||||||
import com.jero.common.system.base.controller.JeroController;
|
import com.jero.common.system.base.controller.JeroController;
|
||||||
import com.jero.common.system.query.QueryGenerator;
|
import com.jero.common.system.query.QueryGenerator;
|
||||||
import com.jero.modules.cert.collect.entity.ParamsCollectManifestEO;
|
import com.jero.modules.cert.collect.entity.ParamsCollectManifestEO;
|
||||||
import com.jero.modules.cert.collect.service.IParamsCollectManifestEOService;
|
import com.jero.modules.cert.collect.service.IParamsCollectManifestEOService;
|
||||||
import com.jero.modules.cert.collect.vo.ParamsCollectManifestVO;
|
import com.jero.modules.cert.collect.vo.ParamsCollectManifestVO;
|
||||||
import com.jero.modules.cert.template.entity.ParamsInfoPublishEO;
|
|
||||||
import com.jero.modules.system.entity.SysUser;
|
import com.jero.modules.system.entity.SysUser;
|
||||||
import com.jero.modules.system.service.ISysUserService;
|
import com.jero.modules.system.service.ISysUserService;
|
||||||
import io.swagger.annotations.Api;
|
import io.swagger.annotations.Api;
|
||||||
import io.swagger.annotations.ApiOperation;
|
import io.swagger.annotations.ApiOperation;
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import org.apache.commons.lang.StringUtils;
|
import org.apache.commons.lang.StringUtils;
|
||||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.validation.annotation.Validated;
|
import org.springframework.validation.annotation.Validated;
|
||||||
import org.springframework.web.bind.annotation.*;
|
import org.springframework.web.bind.annotation.*;
|
||||||
@@ -279,6 +276,25 @@ public class ParamsCollectManifestEOController extends JeroController<ParamsColl
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改责任领域
|
||||||
|
*
|
||||||
|
* @param paramsCollectManifestVO
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
@AutoLog(value = "参数项收集清单-修改责任领域")
|
||||||
|
@ApiOperation(value="参数项收集清单-修改责任领域", notes="参数项收集清单-修改责任领域")
|
||||||
|
@PostMapping(value = "/updateDutyTerritory")
|
||||||
|
// @RequiresPermissions("params:collectManifest:sdt")
|
||||||
|
public Result<?> updateDutyTerritory(ParamsCollectManifestVO paramsCollectManifestVO) {
|
||||||
|
boolean isSuccess = paramsCollectManifestEOService.updateDutyTerritory(paramsCollectManifestVO);
|
||||||
|
if (isSuccess) {
|
||||||
|
return Result.OK("修改责任领域成功!");
|
||||||
|
} else {
|
||||||
|
return Result.error("修改责任领域失败!");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 分配工程接口人
|
* 分配工程接口人
|
||||||
*
|
*
|
||||||
|
|||||||
+3
-1
@@ -4,7 +4,6 @@ import com.baomidou.mybatisplus.core.metadata.IPage;
|
|||||||
import com.baomidou.mybatisplus.extension.service.IService;
|
import com.baomidou.mybatisplus.extension.service.IService;
|
||||||
import com.jero.modules.cert.collect.entity.ParamsCollectManifestEO;
|
import com.jero.modules.cert.collect.entity.ParamsCollectManifestEO;
|
||||||
import com.jero.modules.cert.collect.vo.ParamsCollectManifestVO;
|
import com.jero.modules.cert.collect.vo.ParamsCollectManifestVO;
|
||||||
import com.jero.modules.cert.template.entity.ParamsInfoPublishEO;
|
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
@@ -116,6 +115,9 @@ public interface IParamsCollectManifestEOService extends IService<ParamsCollectM
|
|||||||
// 批量设置截止时间
|
// 批量设置截止时间
|
||||||
boolean updateDeadlineBatch(ParamsCollectManifestVO paramsCollectManifestVO);
|
boolean updateDeadlineBatch(ParamsCollectManifestVO paramsCollectManifestVO);
|
||||||
|
|
||||||
|
// 修改责任领域
|
||||||
|
boolean updateDutyTerritory(ParamsCollectManifestVO paramsCollectManifestVO);
|
||||||
|
|
||||||
// 修改工程接口人
|
// 修改工程接口人
|
||||||
boolean updateSdt(ParamsCollectManifestVO paramsCollectManifestVO);
|
boolean updateSdt(ParamsCollectManifestVO paramsCollectManifestVO);
|
||||||
|
|
||||||
|
|||||||
+34
@@ -641,6 +641,9 @@ public class ParamsCollectManifestEOServiceImpl extends ServiceImpl<ParamsCollec
|
|||||||
if ("description".equals(dbFieldName)) {
|
if ("description".equals(dbFieldName)) {
|
||||||
indexOfDescription = i;
|
indexOfDescription = i;
|
||||||
}
|
}
|
||||||
|
if ("duty_territory".equals(dbFieldName)) {
|
||||||
|
map.put("click1", true);
|
||||||
|
}
|
||||||
if ("sdt".equals(dbFieldName)) {
|
if ("sdt".equals(dbFieldName)) {
|
||||||
map.put("click", true);
|
map.put("click", true);
|
||||||
}
|
}
|
||||||
@@ -1178,6 +1181,37 @@ public class ParamsCollectManifestEOServiceImpl extends ServiceImpl<ParamsCollec
|
|||||||
return updateBatchById(updateEOList);
|
return updateBatchById(updateEOList);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean updateDutyTerritory(ParamsCollectManifestVO paramsCollectManifestVO) {
|
||||||
|
if (StringUtils.isEmpty(paramsCollectManifestVO.getIds())
|
||||||
|
|| StringUtils.isEmpty(paramsCollectManifestVO.getParamsManifestId())
|
||||||
|
|| StringUtils.isEmpty(paramsCollectManifestVO.getDutyTerritory())) {
|
||||||
|
throw new JeroBootException("参数不能为空!");
|
||||||
|
}
|
||||||
|
String paramsCollectManifestId = paramsCollectManifestVO.getIds();
|
||||||
|
String dutyTerritory = paramsCollectManifestVO.getDutyTerritory();
|
||||||
|
ParamsManifestEO paramsManifestEO = paramsManifestEOService.getById(paramsCollectManifestVO.getParamsManifestId());
|
||||||
|
String projectId = paramsManifestEO.getProjectId();
|
||||||
|
|
||||||
|
ParamsCollectManifestEO updateEO = new ParamsCollectManifestEO();
|
||||||
|
updateEO.setId(paramsCollectManifestId);
|
||||||
|
updateEO.setDutyTerritory(dutyTerritory);
|
||||||
|
|
||||||
|
// 根据负责领域处理工程接口人(零个,一个,多个): 领域中仅有一个人时,添加该字段
|
||||||
|
ProjectRelatedPersonnel projectRelatedPersonnel = projectRelatedPersonnelService.queryByProjectIdAndDutyTerritory(projectId, dutyTerritory);
|
||||||
|
if (ObjectUtil.isNotEmpty(projectRelatedPersonnel)) {
|
||||||
|
String sdtId = projectRelatedPersonnel.getEngineeringInterfacePerson();
|
||||||
|
if (org.apache.commons.lang.StringUtils.isNotBlank(sdtId) && !sdtId.contains(",")) { // 领域中仅有一个人时,添加该字段
|
||||||
|
SysUser sysUser = sysUserService.getById(sdtId);
|
||||||
|
if (ObjectUtil.isNotEmpty(sysUser)) {
|
||||||
|
updateEO.setSdt(sysUser.getUsername()); // 设置工程接口人
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return updateById(updateEO);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean updateSdt(ParamsCollectManifestVO paramsCollectManifestVO) {
|
public boolean updateSdt(ParamsCollectManifestVO paramsCollectManifestVO) {
|
||||||
if (StringUtils.isEmpty(paramsCollectManifestVO.getIds()) || StringUtils.isEmpty(paramsCollectManifestVO.getSdt())) {
|
if (StringUtils.isEmpty(paramsCollectManifestVO.getIds()) || StringUtils.isEmpty(paramsCollectManifestVO.getSdt())) {
|
||||||
|
|||||||
@@ -1132,4 +1132,6 @@ module.exports = {
|
|||||||
standardDocuments:'Standard documents',
|
standardDocuments:'Standard documents',
|
||||||
pleaseCompleteTheEvaluationMethodorEvaluator:'Please complete the evaluation method or evaluator in the list',
|
pleaseCompleteTheEvaluationMethodorEvaluator:'Please complete the evaluation method or evaluator in the list',
|
||||||
reviewComments:'Review comments',
|
reviewComments:'Review comments',
|
||||||
|
PleaseCompleteList:'Please complete the compliance results in the list',
|
||||||
|
sponsorFeedback:'Sponsor feedback',
|
||||||
}
|
}
|
||||||
@@ -1136,4 +1136,6 @@ module.exports = {
|
|||||||
standardDocuments:'标准文件',
|
standardDocuments:'标准文件',
|
||||||
pleaseCompleteTheEvaluationMethodorEvaluator:'请补全列表中评估方式或评估人',
|
pleaseCompleteTheEvaluationMethodorEvaluator:'请补全列表中评估方式或评估人',
|
||||||
reviewComments:'审核意见',
|
reviewComments:'审核意见',
|
||||||
|
PleaseCompleteList:'请补全列表中符合性结果',
|
||||||
|
sponsorFeedback:'发起人反馈',
|
||||||
}
|
}
|
||||||
@@ -161,6 +161,10 @@
|
|||||||
type: Object,
|
type: Object,
|
||||||
default: true
|
default: true
|
||||||
},
|
},
|
||||||
|
queryParamQuery: {
|
||||||
|
type: Object,
|
||||||
|
default: true
|
||||||
|
},
|
||||||
currentPersonRole: {
|
currentPersonRole: {
|
||||||
type: String,
|
type: String,
|
||||||
default: true
|
default: true
|
||||||
@@ -591,7 +595,8 @@
|
|||||||
pageSize: this.pageSize,
|
pageSize: this.pageSize,
|
||||||
userTypes: this.currentPersonRole || currentPersonRole,
|
userTypes: this.currentPersonRole || currentPersonRole,
|
||||||
paramsManifestId: paramsManifestid,
|
paramsManifestId: paramsManifestid,
|
||||||
...this.formInline
|
...this.formInline,
|
||||||
|
...currentPersonRole
|
||||||
}
|
}
|
||||||
this.loading = true
|
this.loading = true
|
||||||
getAction(url, params).then((res) => {
|
getAction(url, params).then((res) => {
|
||||||
|
|||||||
@@ -87,7 +87,6 @@
|
|||||||
title: this.$t('clauseContent'),
|
title: this.$t('clauseContent'),
|
||||||
dataIndex: 'itemContent',
|
dataIndex: 'itemContent',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
ellipsis: true,
|
|
||||||
scopedSlots: { customRender: 'clauseContent' }
|
scopedSlots: { customRender: 'clauseContent' }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
-1
@@ -123,7 +123,6 @@
|
|||||||
title: this.$t('clauseContent'),
|
title: this.$t('clauseContent'),
|
||||||
dataIndex: 'iterms_conditions',
|
dataIndex: 'iterms_conditions',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
ellipsis: true,
|
|
||||||
scopedSlots: { customRender: 'clauseContent' }
|
scopedSlots: { customRender: 'clauseContent' }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -22,21 +22,81 @@
|
|||||||
<div class="clauseContent-text" v-html="text"></div>
|
<div class="clauseContent-text" v-html="text"></div>
|
||||||
</a-tooltip>
|
</a-tooltip>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<span slot="nameTechnicalDocument" slot-scope="text,result">
|
||||||
|
<a-input class="box-input"
|
||||||
|
:maxLength="100"
|
||||||
|
v-model="result.technicalFileName"
|
||||||
|
:placeholder="$t('PleaseEnter')+$t('nameTechnicalDocument')"/>
|
||||||
|
</span>
|
||||||
|
<span slot="chapter" slot-scope="text,result">
|
||||||
|
<a-textarea :placeholder="$t('pleaseEnter')+$t('chapter')"
|
||||||
|
v-model="result.section"
|
||||||
|
:maxLength="300"
|
||||||
|
:rows="2"/>
|
||||||
|
</span>
|
||||||
|
<span slot="opinion" slot-scope="text,result">
|
||||||
|
<a-textarea :placeholder="$t('pleaseEnter')+$t('opinion')"
|
||||||
|
v-model="result.opinion"
|
||||||
|
:maxLength="300"
|
||||||
|
:rows="2"/>
|
||||||
|
</span>
|
||||||
|
<span slot="enclosure" slot-scope="text,result,index">
|
||||||
|
<a-button type="primary" class="button-text"
|
||||||
|
@click="clickButtonToUpload('accessoryFile',index)">
|
||||||
|
{{ (result.accessoryFile === 'null' || result.accessoryFile === '' ||
|
||||||
|
result.accessoryFile == null) ? $t('clickUpload') : $t('viewUploadedFiles')
|
||||||
|
}}
|
||||||
|
</a-button>
|
||||||
|
</span>
|
||||||
|
<span slot="complianceResults" slot-scope="text,result">
|
||||||
|
<a-select :placeholder="$t('PleaseSelect')+$t('complianceResults')"
|
||||||
|
class="box-input"
|
||||||
|
:getPopupContainer="triggerNode=> triggerNode.parentNode"
|
||||||
|
allowClear
|
||||||
|
v-model="result.complianceResult">
|
||||||
|
<a-select-option v-for="(item, key) in complianceResultsList"
|
||||||
|
:key="key"
|
||||||
|
:value="item.value">
|
||||||
|
<span style="display: inline-block;width: 100%" :title="item.name ">
|
||||||
|
{{ item.name }}
|
||||||
|
</span>
|
||||||
|
</a-select-option>
|
||||||
|
</a-select>
|
||||||
|
</span>
|
||||||
|
<span slot="accessoryFile" slot-scope="text,result">
|
||||||
|
<a v-if="text" @click="accessoryFileClick(text)">
|
||||||
|
{{ $t('viewFile') }}
|
||||||
|
</a>
|
||||||
|
<span v-else>--</span>
|
||||||
|
</span>
|
||||||
|
<span slot="Results" slot-scope="text,result">
|
||||||
|
{{text == 'Compliance' ? $t('accord'):$t('nonConformity')}}
|
||||||
|
</span>
|
||||||
|
<span slot="sponsorFeedback" slot-scope="text,result">
|
||||||
|
<a-textarea :placeholder="$t('pleaseEnter')+$t('sponsorFeedback')"
|
||||||
|
v-model="result.sponsorFeedback"
|
||||||
|
:maxLength="300"
|
||||||
|
:rows="2"/>
|
||||||
|
</span>
|
||||||
</a-table>
|
</a-table>
|
||||||
</div>
|
</div>
|
||||||
<uploadFile ref="uploadFile" :disabled="disabled" @uploadSuccess="uploadSuccess"></uploadFile>
|
<uploadFile ref="uploadFile" :disabled="disabled" @uploadSuccess="uploadSuccess"></uploadFile>
|
||||||
|
<viewFileModel ref="viewFileModelRef"/>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { getAction, postAction } from '@/api/manage'
|
import { getAction, postAction } from '@/api/manage'
|
||||||
import uploadFile from '@/components/uploadFile/file'
|
import uploadFile from '@/components/uploadFile/file'
|
||||||
|
import viewFileModel from '@/components/viewFileModel/index'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'evaluatorFeedback',
|
name: 'evaluatorFeedback',
|
||||||
|
|
||||||
components: {
|
components: {
|
||||||
uploadFile
|
uploadFile,
|
||||||
|
viewFileModel
|
||||||
},
|
},
|
||||||
props: {
|
props: {
|
||||||
title: {
|
title: {
|
||||||
@@ -56,61 +116,154 @@
|
|||||||
loading: false,
|
loading: false,
|
||||||
uploadIndex: '',
|
uploadIndex: '',
|
||||||
dataSource: [],
|
dataSource: [],
|
||||||
columns: [
|
complianceResultsList: [
|
||||||
|
{
|
||||||
|
name: this.$t('accord'),
|
||||||
|
value: 'Compliance'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: this.$t('nonConformity'),
|
||||||
|
value: 'Non-Compliance'
|
||||||
|
}
|
||||||
|
],
|
||||||
|
columnsTwo: [
|
||||||
{
|
{
|
||||||
title: this.$t('clauseNo'),
|
title: this.$t('clauseNo'),
|
||||||
dataIndex: 'itemNum',
|
dataIndex: 'itemNum',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
|
width: 180,
|
||||||
ellipsis: true
|
ellipsis: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('clauseName'),
|
title: this.$t('clauseName'),
|
||||||
dataIndex: 'itemName',
|
dataIndex: 'itemName',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
|
width: 180,
|
||||||
ellipsis: true
|
ellipsis: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('clauseContent'),
|
title: this.$t('clauseContent'),
|
||||||
dataIndex: 'itemContent',
|
dataIndex: 'itemContent',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
ellipsis: true,
|
width: 280,
|
||||||
scopedSlots: { customRender: 'clauseContent' }
|
scopedSlots: { customRender: 'clauseContent' }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('evaluationMethod'),
|
title: this.$t('evaluationMethod'),
|
||||||
dataIndex: 'evaluationMethod',
|
dataIndex: 'evaluationMethodsName',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
|
width: 180,
|
||||||
ellipsis: true
|
ellipsis: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('nameTechnicalDocument'),
|
title: this.$t('nameTechnicalDocument'),
|
||||||
dataIndex: 'nameTechnicalDocument',
|
dataIndex: 'technicalFileName',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
|
width: 280,
|
||||||
|
scopedSlots: { customRender: 'nameTechnicalDocument' }
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: this.$t('chapter'),
|
||||||
|
dataIndex: 'section',
|
||||||
|
align: 'center',
|
||||||
|
width: 180,
|
||||||
|
scopedSlots: { customRender: 'chapter' }
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: this.$t('opinion'),
|
||||||
|
dataIndex: 'opinion',
|
||||||
|
align: 'center',
|
||||||
|
width: 180,
|
||||||
|
scopedSlots: { customRender: 'opinion' }
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: this.$t('enclosure'),
|
||||||
|
dataIndex: 'accessoryFile',
|
||||||
|
align: 'center',
|
||||||
|
width: 180,
|
||||||
|
scopedSlots: { customRender: 'enclosure' }
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: this.$t('complianceResults'),
|
||||||
|
dataIndex: 'complianceResult',
|
||||||
|
align: 'center',
|
||||||
|
width: 180,
|
||||||
|
scopedSlots: { customRender: 'complianceResults' }
|
||||||
|
}
|
||||||
|
],
|
||||||
|
columnsThree: [
|
||||||
|
{
|
||||||
|
title: this.$t('clauseNo'),
|
||||||
|
dataIndex: 'itemNum',
|
||||||
|
align: 'center',
|
||||||
|
width: 180,
|
||||||
|
ellipsis: true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: this.$t('clauseName'),
|
||||||
|
dataIndex: 'itemName',
|
||||||
|
align: 'center',
|
||||||
|
width: 180,
|
||||||
|
ellipsis: true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: this.$t('clauseContent'),
|
||||||
|
dataIndex: 'itemContent',
|
||||||
|
align: 'center',
|
||||||
|
width: 280,
|
||||||
|
scopedSlots: { customRender: 'clauseContent' }
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: this.$t('evaluationMethod'),
|
||||||
|
dataIndex: 'evaluationMethodsName',
|
||||||
|
align: 'center',
|
||||||
|
width: 180,
|
||||||
|
ellipsis: true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: this.$t('nameTechnicalDocument'),
|
||||||
|
dataIndex: 'technicalFileName',
|
||||||
|
align: 'center',
|
||||||
|
width: 280,
|
||||||
ellipsis: true
|
ellipsis: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('chapter'),
|
title: this.$t('chapter'),
|
||||||
dataIndex: 'chapter',
|
dataIndex: 'section',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
|
width: 180,
|
||||||
ellipsis: true
|
ellipsis: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('opinion'),
|
title: this.$t('opinion'),
|
||||||
dataIndex: 'opinion',
|
dataIndex: 'opinion',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
|
width: 180,
|
||||||
ellipsis: true
|
ellipsis: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('enclosure'),
|
title: this.$t('enclosure'),
|
||||||
dataIndex: 'enclosure',
|
dataIndex: 'accessoryFile',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
ellipsis: true
|
width: 180,
|
||||||
|
ellipsis: true,
|
||||||
|
scopedSlots: { customRender: 'accessoryFile' }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('complianceResults'),
|
title: this.$t('complianceResults'),
|
||||||
dataIndex: 'complianceResults',
|
dataIndex: 'complianceResult',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
ellipsis: true
|
width: 180,
|
||||||
|
ellipsis: true,
|
||||||
|
scopedSlots: { customRender: 'Results' }
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: this.$t('sponsorFeedback'),
|
||||||
|
dataIndex: 'sponsorFeedback',
|
||||||
|
align: 'center',
|
||||||
|
width: 180,
|
||||||
|
ellipsis: true,
|
||||||
|
scopedSlots: { customRender: 'sponsorFeedback' }
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@@ -118,6 +271,21 @@
|
|||||||
mounted() {
|
mounted() {
|
||||||
if (this.evaluatorFeedbackList && this.evaluatorFeedbackList.length > 0) {
|
if (this.evaluatorFeedbackList && this.evaluatorFeedbackList.length > 0) {
|
||||||
this.dataSource = this.evaluatorFeedbackList
|
this.dataSource = this.evaluatorFeedbackList
|
||||||
|
if (this.$route.query.taskDefinitionKey != 'pgrqr') {
|
||||||
|
this.dataSource.forEach(res => {
|
||||||
|
res.sponsorFeedback = ''
|
||||||
|
})
|
||||||
|
this.dataSource = [...this.dataSource]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
computed: {
|
||||||
|
columns() {
|
||||||
|
if (this.$route.query.taskDefinitionKey == 'pgrqr') {
|
||||||
|
return this.columnsTwo
|
||||||
|
} else {
|
||||||
|
return this.columnsThree
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
@@ -126,7 +294,7 @@
|
|||||||
this.$refs.uploadFile.visible = true
|
this.$refs.uploadFile.visible = true
|
||||||
this.uploadName = item
|
this.uploadName = item
|
||||||
this.uploadIndex = index
|
this.uploadIndex = index
|
||||||
getAction('sys/common/getFileInfos', { id: this.dataList[this.uploadIndex][this.uploadName] }).then((res) => {
|
getAction('sys/common/getFileInfos', { id: this.dataSource[this.uploadIndex][this.uploadName] }).then((res) => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.$refs.uploadFile.perentHandleFunc(res.result)
|
this.$refs.uploadFile.perentHandleFunc(res.result)
|
||||||
} else {
|
} else {
|
||||||
@@ -143,8 +311,23 @@
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
/** 赋值给当前对应的表单文件 */
|
/** 赋值给当前对应的表单文件 */
|
||||||
this.dataList[this.uploadIndex][this.uploadName] = attIdList.join(',')
|
this.dataSource[this.uploadIndex][this.uploadName] = attIdList.join(',')
|
||||||
this.dataList = [...this.dataList]
|
this.dataSource = [...this.dataSource]
|
||||||
|
},
|
||||||
|
submitData(callBack) {
|
||||||
|
for (let i = 0; i < this.dataSource.length; i++) {
|
||||||
|
if (!this.dataSource[i].complianceResult) {
|
||||||
|
this.$message.warning(this.$t('PleaseCompleteList'))
|
||||||
|
return
|
||||||
|
}
|
||||||
|
}
|
||||||
|
callBack && callBack(this.dataSource)
|
||||||
|
},
|
||||||
|
preservationData(callBack) {
|
||||||
|
callBack && callBack(this.dataSource)
|
||||||
|
},
|
||||||
|
accessoryFileClick(item) {
|
||||||
|
this.$refs.viewFileModelRef.clickButtonToUpload(item)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -214,7 +397,7 @@
|
|||||||
|
|
||||||
.button-text {
|
.button-text {
|
||||||
height: 38px;
|
height: 38px;
|
||||||
width: calc(100% - 100px);
|
width: calc(100%);
|
||||||
line-height: 38px;
|
line-height: 38px;
|
||||||
background: #fff;
|
background: #fff;
|
||||||
border: 1px #00B3BE solid;
|
border: 1px #00B3BE solid;
|
||||||
@@ -233,6 +416,7 @@
|
|||||||
margin-left: 8px;
|
margin-left: 8px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
.clauseContent-text {
|
.clauseContent-text {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
@@ -245,4 +429,15 @@
|
|||||||
text-justify: inter-ideograph;
|
text-justify: inter-ideograph;
|
||||||
word-break: break-all
|
word-break: break-all
|
||||||
}
|
}
|
||||||
|
|
||||||
|
</style>
|
||||||
|
<style>
|
||||||
|
.box-input .ant-select-selection--single {
|
||||||
|
height: 38px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.box-input .ant-select-selection__rendered {
|
||||||
|
line-height: 38px;
|
||||||
|
height: 38px;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
@@ -78,7 +78,7 @@
|
|||||||
isPreservation: false,
|
isPreservation: false,
|
||||||
isSendBack: false,
|
isSendBack: false,
|
||||||
isTrue: false,
|
isTrue: false,
|
||||||
standardContentList:[],
|
standardContentList: [],
|
||||||
standardContent: [
|
standardContent: [
|
||||||
{
|
{
|
||||||
title: this.$t('standard'),
|
title: this.$t('standard'),
|
||||||
@@ -110,7 +110,7 @@
|
|||||||
value: 'processBackground'
|
value: 'processBackground'
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
evaluatorFeedback:[
|
evaluatorFeedback: [
|
||||||
{
|
{
|
||||||
title: this.$t('standard'),
|
title: this.$t('standard'),
|
||||||
value: 'serialNumber'
|
value: 'serialNumber'
|
||||||
@@ -137,7 +137,7 @@
|
|||||||
title: this.$t('processBackground'),
|
title: this.$t('processBackground'),
|
||||||
value: 'processBackground'
|
value: 'processBackground'
|
||||||
}
|
}
|
||||||
],
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
@@ -174,7 +174,7 @@
|
|||||||
lawsTechnologyEvaluationItem() {
|
lawsTechnologyEvaluationItem() {
|
||||||
getAction('/lawsTechnologyEvaluation/lawsTechnologyEvaluationItemResultEO/list', {
|
getAction('/lawsTechnologyEvaluation/lawsTechnologyEvaluationItemResultEO/list', {
|
||||||
lawsTechnologyEvaluationId: this.queryProject.lawsTechnologyEvaluationId,
|
lawsTechnologyEvaluationId: this.queryProject.lawsTechnologyEvaluationId,
|
||||||
actiProcInstId: this.$route.query.prcId,
|
actiProcInstId: this.$route.query.prcId
|
||||||
}).then((res) => {
|
}).then((res) => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.evaluatorFeedbackList = res.result || []
|
this.evaluatorFeedbackList = res.result || []
|
||||||
@@ -205,8 +205,39 @@
|
|||||||
},
|
},
|
||||||
preservation() {
|
preservation() {
|
||||||
this.loading = true
|
this.loading = true
|
||||||
this.$refs.evaluatorFeedbackRef.preservationData((res) => {
|
if (this.isTrue) {
|
||||||
this.insertBatch(res, 1)
|
this.$refs.evaluatorFeedbackListRef.preservationData((res) => {
|
||||||
|
this.batchUpdate(res, 1)
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
this.$refs.evaluatorFeedbackRef.preservationData((res) => {
|
||||||
|
this.insertBatch(res, 1)
|
||||||
|
})
|
||||||
|
}
|
||||||
|
},
|
||||||
|
batchUpdate(val, num) {
|
||||||
|
let query = {
|
||||||
|
actiProcInstId: this.$route.query.prcId,
|
||||||
|
lawsTechnologyEvaluationId: this.queryProject.lawsTechnologyEvaluationId,
|
||||||
|
itemResultList: val
|
||||||
|
}
|
||||||
|
postAction('/lawsTechnologyEvaluation/lawsTechnologyEvaluationItemResultEO/batchUpdate', query).then((res) => {
|
||||||
|
if (res.success) {
|
||||||
|
if (num == 1) {
|
||||||
|
this.$message.success(this.$t('OperationSuccessful'))
|
||||||
|
this.loading = false
|
||||||
|
} else {
|
||||||
|
if (this.queryProject.msg) {
|
||||||
|
delete this.queryProject.msg
|
||||||
|
}
|
||||||
|
this.completeTask()
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
if (num == 1) {
|
||||||
|
this.loading = false
|
||||||
|
this.$message.warning(this.$t('operationFailed'))
|
||||||
|
}
|
||||||
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
insertBatch(val, num) {
|
insertBatch(val, num) {
|
||||||
@@ -234,7 +265,11 @@
|
|||||||
},
|
},
|
||||||
sendBack() {
|
sendBack() {
|
||||||
if (this.isTrue) {
|
if (this.isTrue) {
|
||||||
|
this.$refs.evaluatorFeedbackListRef.preservationData((res) => {
|
||||||
|
this.loading = true
|
||||||
|
this.queryProject.flag = '2'
|
||||||
|
this.batchUpdate(res, 2)
|
||||||
|
})
|
||||||
} else {
|
} else {
|
||||||
this.$refs.evaluatorFeedbackRef.preservationData((res) => {
|
this.$refs.evaluatorFeedbackRef.preservationData((res) => {
|
||||||
this.loading = true
|
this.loading = true
|
||||||
@@ -246,7 +281,16 @@
|
|||||||
},
|
},
|
||||||
submit() {
|
submit() {
|
||||||
if (this.isTrue) {
|
if (this.isTrue) {
|
||||||
|
this.$refs.evaluatorFeedbackListRef.submitData((res) => {
|
||||||
|
if (this.$route.query.taskDefinitionKey == 'pgrqr') {
|
||||||
|
this.loading = true
|
||||||
|
this.batchUpdate(res, 2)
|
||||||
|
} else {
|
||||||
|
this.loading = true
|
||||||
|
this.queryProject.flag = '1'
|
||||||
|
this.batchUpdate(res, 2)
|
||||||
|
}
|
||||||
|
})
|
||||||
} else {
|
} else {
|
||||||
this.$refs.evaluatorFeedbackRef.submitData((res) => {
|
this.$refs.evaluatorFeedbackRef.submitData((res) => {
|
||||||
if (this.$route.query.taskDefinitionKey == 'pgrqr') {
|
if (this.$route.query.taskDefinitionKey == 'pgrqr') {
|
||||||
|
|||||||
@@ -33,17 +33,17 @@
|
|||||||
v-model="formInline.paramsName"></a-input>
|
v-model="formInline.paramsName"></a-input>
|
||||||
</div>
|
</div>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :md="6" :sm="8">
|
<!-- <a-col :md="6" :sm="8">-->
|
||||||
<div class="box-title-text">
|
<!-- <div class="box-title-text">-->
|
||||||
<div class="title-text" :title="$t('certificationCategory')">
|
<!-- <div class="title-text" :title="$t('certificationCategory')">-->
|
||||||
<span>{{$t('certificationCategory')}}</span>
|
<!-- <span>{{$t('certificationCategory')}}</span>-->
|
||||||
</div>
|
<!-- </div>-->
|
||||||
<j-dict-select-tag class="box-input" v-model="formInline.certCategory"
|
<!-- <j-dict-select-tag class="box-input" v-model="formInline.certCategory"-->
|
||||||
:placeholder="$t('PleaseSelect')+$t('certificationCategory')"
|
<!-- :placeholder="$t('PleaseSelect')+$t('certificationCategory')"-->
|
||||||
:type="'select'"
|
<!-- :type="'select'"-->
|
||||||
:triggerChange="false" :dictCode="'cert_category'"/>
|
<!-- :triggerChange="false" :dictCode="'cert_category'"/>-->
|
||||||
</div>
|
<!-- </div>-->
|
||||||
</a-col>
|
<!-- </a-col>-->
|
||||||
<a-col :md="6" :sm="8">
|
<a-col :md="6" :sm="8">
|
||||||
<div class="box-title-text">
|
<div class="box-title-text">
|
||||||
<div class="title-text" :title="$t('areaOfResponsibility')">
|
<div class="title-text" :title="$t('areaOfResponsibility')">
|
||||||
@@ -64,29 +64,32 @@
|
|||||||
v-model="formInline.dre"></a-input>
|
v-model="formInline.dre"></a-input>
|
||||||
</div>
|
</div>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :md="6" :sm="8">
|
<!-- <a-col :md="6" :sm="8">-->
|
||||||
<div class="box-title-text">
|
<!-- <div class="box-title-text">-->
|
||||||
<div class="title-text" :title="$t('status')">
|
<!-- <div class="title-text" :title="$t('status')">-->
|
||||||
<span>{{$t('status')}}</span>
|
<!-- <span>{{$t('status')}}</span>-->
|
||||||
</div>
|
<!-- </div>-->
|
||||||
<a-select :placeholder="$t('PleaseSelect')+$t('status')"
|
<!-- <a-select :placeholder="$t('PleaseSelect')+$t('status')"-->
|
||||||
class="box-input"
|
<!-- class="box-input"-->
|
||||||
allowClear
|
<!-- allowClear-->
|
||||||
:getPopupContainer="triggerNode=> triggerNode.parentNode"
|
<!-- :getPopupContainer="triggerNode=> triggerNode.parentNode"-->
|
||||||
v-model="formInline.state">
|
<!-- v-model="formInline.state">-->
|
||||||
<a-select-option v-for="(item, key) in statusList"
|
<!-- <a-select-option v-for="(item, key) in statusList"-->
|
||||||
:key="key"
|
<!-- :key="key"-->
|
||||||
:value="item.value">
|
<!-- :value="item.value">-->
|
||||||
<span style="display: inline-block;width: 100%" :title=" item.name ">
|
<!-- <span style="display: inline-block;width: 100%" :title=" item.name ">-->
|
||||||
{{ item.name}}
|
<!-- {{ item.name}}-->
|
||||||
</span>
|
<!-- </span>-->
|
||||||
</a-select-option>
|
<!-- </a-select-option>-->
|
||||||
</a-select>
|
<!-- </a-select>-->
|
||||||
</div>
|
<!-- </div>-->
|
||||||
</a-col>
|
<!-- </a-col>-->
|
||||||
<span style="float: right;overflow: hidden;margin-right: 11px"
|
<span style="float: right;overflow: hidden;margin-right: 11px"
|
||||||
class="table-page-search-submitButtons">
|
class="table-page-search-submitButtons">
|
||||||
<a-col :md="6" :sm="24">
|
<a-col :md="6" :sm="24">
|
||||||
|
<globalAdvancedQuery ref="globalAdvancedQueryRef"
|
||||||
|
@handleSuperQuery="handleSuperQuery"
|
||||||
|
:fieldList="fieldList"/>
|
||||||
<a-button class="box-button" type="primary" @click="searchQuery">{{$t('query')}}</a-button>
|
<a-button class="box-button" type="primary" @click="searchQuery">{{$t('query')}}</a-button>
|
||||||
<a-button class="box-button" style="margin-left: 8px" @click="searchReset">{{$t('reset')}}</a-button>
|
<a-button class="box-button" style="margin-left: 8px" @click="searchReset">{{$t('reset')}}</a-button>
|
||||||
</a-col>
|
</a-col>
|
||||||
@@ -187,7 +190,7 @@
|
|||||||
<div style="width: 100%">
|
<div style="width: 100%">
|
||||||
<!-- 表格-10控件-->
|
<!-- 表格-10控件-->
|
||||||
<table-collection ref="CollectionTabel" :url='url' :paramsManifest='paramsManifest' @rowValue='rowValue'
|
<table-collection ref="CollectionTabel" :url='url' :paramsManifest='paramsManifest' @rowValue='rowValue'
|
||||||
:formInline='formInline' :currentPersonRole='currentPersonRole'
|
:formInline='formInline' :queryParamQuery='queryParamQuery' :currentPersonRole='currentPersonRole'
|
||||||
@getDataSource="getDataSource"
|
@getDataSource="getDataSource"
|
||||||
@handlePreservation="handlePreservation"
|
@handlePreservation="handlePreservation"
|
||||||
@value='value'
|
@value='value'
|
||||||
@@ -391,6 +394,7 @@
|
|||||||
import TableCollection from '@/components/tableCollection/index'
|
import TableCollection from '@/components/tableCollection/index'
|
||||||
import { getAction, postAction } from '../../../api/manage'
|
import { getAction, postAction } from '../../../api/manage'
|
||||||
import ParameterLibraryAdd from '@/components/ParameterLibraryAdd/index'
|
import ParameterLibraryAdd from '@/components/ParameterLibraryAdd/index'
|
||||||
|
import globalAdvancedQuery from '@/components/globalAdvancedQuery/index'
|
||||||
import SynchronousSubmissionLibrary from '@/components/SynchronousSubmissionLibrary/index'
|
import SynchronousSubmissionLibrary from '@/components/SynchronousSubmissionLibrary/index'
|
||||||
import TaskCutOffTime from '@/components/TaskCutOffTime/index'
|
import TaskCutOffTime from '@/components/TaskCutOffTime/index'
|
||||||
import ReferenceParameter from '@/components/ReferenceParameter/index'
|
import ReferenceParameter from '@/components/ReferenceParameter/index'
|
||||||
@@ -408,45 +412,55 @@
|
|||||||
AssignedBy,
|
AssignedBy,
|
||||||
TaskCutOffTime,
|
TaskCutOffTime,
|
||||||
ReferenceParameter,
|
ReferenceParameter,
|
||||||
SynchronousSubmissionLibrary
|
SynchronousSubmissionLibrary,
|
||||||
|
globalAdvancedQuery
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
this.statusList = [
|
this.statusList = [
|
||||||
{
|
{
|
||||||
value: '1',
|
value: '1',
|
||||||
name: this.$t('CollectionInitiated')
|
title: this.$t('CollectionInitiated'),
|
||||||
|
key:'1',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
value: '2',
|
value: '2',
|
||||||
name: this.$t('handledInterface')
|
title: this.$t('handledInterface'),
|
||||||
|
key:'2',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
value: '3',
|
value: '3',
|
||||||
name: this.$t('ReturnedPerson')
|
title: this.$t('ReturnedPerson'),
|
||||||
|
key:'3',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
value: '4',
|
value: '4',
|
||||||
name: this.$t('completed')
|
title: this.$t('completed'),
|
||||||
|
key:'4',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
value: '5',
|
value: '5',
|
||||||
name: this.$t('Filledreturn')
|
title: this.$t('Filledreturn'),
|
||||||
|
key:'5',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
value: '6',
|
value: '6',
|
||||||
name: this.$t('Submitted')
|
title: this.$t('Submitted'),
|
||||||
|
key:'6',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
value: '7',
|
value: '7',
|
||||||
name: this.$t('ReturnedEngineer')
|
title: this.$t('ReturnedEngineer'),
|
||||||
|
key:'7',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
value: '8',
|
value: '8',
|
||||||
name: this.$t('SynchronizedLibrary')
|
title: this.$t('SynchronizedLibrary'),
|
||||||
|
key:'8',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
value: '9',
|
value: '9',
|
||||||
name: this.$t('alteration')
|
title: this.$t('alteration'),
|
||||||
|
key:'9',
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
return {
|
return {
|
||||||
@@ -502,9 +516,24 @@
|
|||||||
scopedSlots: { customRender: 'operation' }
|
scopedSlots: { customRender: 'operation' }
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
fieldList: [
|
||||||
|
{
|
||||||
|
type: '',
|
||||||
|
value: 'attestationType',
|
||||||
|
text: this.$t('certificationCategory'),
|
||||||
|
dictCode: 'cert_category'//只要 dictCode 有值,无论 type 是什么,都显示为字典下拉框
|
||||||
|
},
|
||||||
|
{
|
||||||
|
type: '',
|
||||||
|
value: 'attestationRank',
|
||||||
|
text: this.$t('status'),
|
||||||
|
options: this.statusList//只要 dictCode 有值,无论 type 是什么,都显示为字典下拉框
|
||||||
|
},
|
||||||
|
],
|
||||||
selectedRowKeys: [],
|
selectedRowKeys: [],
|
||||||
textLoading: false,
|
textLoading: false,
|
||||||
formInline: {},
|
formInline: {},
|
||||||
|
queryParamQuery:{},
|
||||||
url: {
|
url: {
|
||||||
tableHeader: 'params/collectManifest/getHeader',
|
tableHeader: 'params/collectManifest/getHeader',
|
||||||
tableList: 'params/collectManifest/list',
|
tableList: 'params/collectManifest/list',
|
||||||
@@ -740,6 +769,20 @@
|
|||||||
return flag
|
return flag
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
// 高级搜索
|
||||||
|
handleSuperQuery(params, matchType) {
|
||||||
|
let sqp = {}
|
||||||
|
if (!params || (params && params.length == 0)) {
|
||||||
|
sqp['superQueryParams'] = ''
|
||||||
|
this.$refs.globalAdvancedQueryRef.superQueryFlag = false
|
||||||
|
} else {
|
||||||
|
this.$refs.globalAdvancedQueryRef.superQueryFlag = true
|
||||||
|
sqp['superQueryParams'] = encodeURI(JSON.stringify(params))
|
||||||
|
sqp['superQueryMatchType'] = matchType
|
||||||
|
}
|
||||||
|
this.queryParamQuery = sqp
|
||||||
|
this.$refs.CollectionTabel.getTableList(this.queryParamQuery)
|
||||||
|
},
|
||||||
// 认证工程师 批量删除 权限
|
// 认证工程师 批量删除 权限
|
||||||
// 仅仅状态为 待发起收集 工程接口人退回 变更 可以批量删除
|
// 仅仅状态为 待发起收集 工程接口人退回 变更 可以批量删除
|
||||||
homoJurisdictionBatchdelete() {
|
homoJurisdictionBatchdelete() {
|
||||||
@@ -1392,6 +1435,8 @@
|
|||||||
},
|
},
|
||||||
searchReset() {
|
searchReset() {
|
||||||
this.$refs.CollectionTabel.getTableListReset()
|
this.$refs.CollectionTabel.getTableListReset()
|
||||||
|
this.$refs.globalAdvancedQueryRef.resetLine()
|
||||||
|
this.$refs.globalAdvancedQueryRef.emitCallback()
|
||||||
},
|
},
|
||||||
// 批量删除 -- 与下发收集一致
|
// 批量删除 -- 与下发收集一致
|
||||||
handleDelJurisdiction() {
|
handleDelJurisdiction() {
|
||||||
|
|||||||
Reference in New Issue
Block a user