Merge remote-tracking branch 'origin/dev_2nd_LCYH' into dev_2nd_LCYH
This commit is contained in:
+32
-9
@@ -24,6 +24,7 @@ import com.jero.modules.project.mapper.ProjectYearNameInfoEOMapper;
|
||||
import com.jero.modules.project.service.IProjectLawsInventoryEOService;
|
||||
import com.jero.modules.system.entity.SysUser;
|
||||
import com.jero.modules.system.service.ISysUserService;
|
||||
import com.jero.modules.wkflow.enums.FlowTypeEnum;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.apache.commons.collections4.CollectionUtils;
|
||||
import org.apache.commons.lang3.ObjectUtils;
|
||||
@@ -109,7 +110,7 @@ public class TaskAffirmJob implements Job {
|
||||
|
||||
List<String> userIdList = Arrays.asList(designDutyId.split(","));
|
||||
|
||||
Map<String, Object> sendMsgDataListMap = this.disposeSendMsgDataList(designDutyDataList);
|
||||
Map<String, Object> sendMsgDataListMap = this.disposeSendMsgDataList(designDutyDataList, FlowTypeEnum.SJFHXSHLC.getValue());
|
||||
|
||||
// 三条后结束的
|
||||
List<ProjectLawsInventoryEO> threeDaysList = (List<ProjectLawsInventoryEO>) sendMsgDataListMap.get("threeDaysList");
|
||||
@@ -187,7 +188,7 @@ public class TaskAffirmJob implements Job {
|
||||
|
||||
List<String> userIdList = Arrays.asList(verifyDutyId.split(","));
|
||||
|
||||
Map<String, Object> sendMsgDataListMap = this.disposeSendMsgDataList(verifyDutyDataList);
|
||||
Map<String, Object> sendMsgDataListMap = this.disposeSendMsgDataList(verifyDutyDataList,FlowTypeEnum.YZFHXSCLC.getValue());
|
||||
|
||||
// 三条后结束的
|
||||
List<ProjectLawsInventoryEO> threeDaysList = (List<ProjectLawsInventoryEO>) sendMsgDataListMap.get("threeDaysList");
|
||||
@@ -482,7 +483,7 @@ public class TaskAffirmJob implements Job {
|
||||
log.info("任务确认流程,定时任务结束 =====================================================");
|
||||
}
|
||||
|
||||
private Map<String, Object> disposeSendMsgDataList(List<ProjectLawsInventoryEO> projectLawsInventoryEOList) {
|
||||
private Map<String, Object> disposeSendMsgDataList(List<ProjectLawsInventoryEO> projectLawsInventoryEOList,String flowType) {
|
||||
Map<String,Object> result = new HashMap<>();
|
||||
Date currentDate = new Date();
|
||||
String currentDateStr = sdf.format(currentDate);
|
||||
@@ -498,22 +499,38 @@ public class TaskAffirmJob implements Job {
|
||||
List<ProjectLawsInventoryEO> currentDaysList = projectLawsInventoryEOList.stream().filter(data -> {
|
||||
boolean flag = false;
|
||||
//结束日期是当前日期
|
||||
if(data.getInventoryAffirmDueDate() != null){
|
||||
if (StringUtils.equals(currentDateStr, sdf.format(data.getInventoryAffirmDueDate()))) {
|
||||
if(StringUtils.equals(flowType,FlowTypeEnum.SJFHXSHLC.getValue())){
|
||||
if(data.getDesignDueDate() != null){
|
||||
if (StringUtils.equals(currentDateStr, sdf.format(data.getDesignDueDate()))) {
|
||||
flag = true;
|
||||
}
|
||||
}
|
||||
}else if(StringUtils.equals(flowType,FlowTypeEnum.YZFHXSCLC.getValue())){
|
||||
if(data.getVerifyDueDate() != null){
|
||||
if (StringUtils.equals(currentDateStr, sdf.format(data.getVerifyDueDate()))) {
|
||||
flag = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
return flag;
|
||||
}).collect(Collectors.toList());
|
||||
|
||||
// 三天后结束的
|
||||
List<ProjectLawsInventoryEO> threeDaysList = projectLawsInventoryEOList.stream().filter(data -> {
|
||||
boolean flag = false;
|
||||
if(data.getInventoryAffirmDueDate() != null){
|
||||
if (StringUtils.equals(threeDaysStr, sdf.format(data.getInventoryAffirmDueDate()))) {
|
||||
if(StringUtils.equals(flowType,FlowTypeEnum.SJFHXSHLC.getValue())){
|
||||
if(data.getDesignDueDate() != null){
|
||||
if (StringUtils.equals(threeDaysStr, sdf.format(data.getDesignDueDate()))) {
|
||||
flag = true;
|
||||
}
|
||||
}
|
||||
}else if(StringUtils.equals(flowType,FlowTypeEnum.YZFHXSCLC.getValue())){
|
||||
if(data.getVerifyDueDate() != null){
|
||||
if (StringUtils.equals(threeDaysStr, sdf.format(data.getVerifyDueDate()))) {
|
||||
flag = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
return flag;
|
||||
}).collect(Collectors.toList());
|
||||
|
||||
@@ -521,8 +538,14 @@ public class TaskAffirmJob implements Job {
|
||||
List<ProjectLawsInventoryEO> overdueList = projectLawsInventoryEOList.stream().filter(data -> {
|
||||
// 只要早于当前日期都算逾期 不算当天。
|
||||
boolean flag = false;
|
||||
if(data.getInventoryAffirmDueDate() != null){
|
||||
flag = (data.getInventoryAffirmDueDate().before(currentDate) && !StringUtils.equals(currentDateStr, sdf.format(data.getInventoryAffirmDueDate())));
|
||||
if(StringUtils.equals(flowType,FlowTypeEnum.SJFHXSHLC.getValue())){
|
||||
if(data.getDesignDueDate() != null){
|
||||
flag = (data.getDesignDueDate().before(currentDate) && !StringUtils.equals(currentDateStr, sdf.format(data.getDesignDueDate())));
|
||||
}
|
||||
}else if(StringUtils.equals(flowType,FlowTypeEnum.YZFHXSCLC.getValue())){
|
||||
if(data.getVerifyDueDate() != null){
|
||||
flag = (data.getVerifyDueDate().before(currentDate) && !StringUtils.equals(currentDateStr, sdf.format(data.getVerifyDueDate())));
|
||||
}
|
||||
}
|
||||
return flag;
|
||||
}).collect(Collectors.toList());
|
||||
|
||||
+62
-35
@@ -77,12 +77,9 @@ public class designComplianceJob implements Job {
|
||||
public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
|
||||
log.info("设计符合性确认流程,定时任务开启 =====================================================");
|
||||
|
||||
// 查询出 任务待确认、结果待提交的数据
|
||||
List<String> designFlowStatusList = new ArrayList<>();
|
||||
designFlowStatusList.add(ComplianceFlowStatusEnum.TASK_TO_BE_CONFIRMED.getValue());
|
||||
designFlowStatusList.add(ComplianceFlowStatusEnum.RESULTS_TO_BE_SUBMITTED.getValue());
|
||||
// 查询出 结果待提交的数据
|
||||
QueryWrapper<ProjectLawsInventoryEO> lawsInventoryEOQueryWrap = new QueryWrapper<>();
|
||||
lawsInventoryEOQueryWrap.lambda().in(ProjectLawsInventoryEO::getDesignFlowStatus,designFlowStatusList);
|
||||
lawsInventoryEOQueryWrap.lambda().eq(ProjectLawsInventoryEO::getDesignFlowStatus,ComplianceFlowStatusEnum.RESULTS_TO_BE_SUBMITTED.getValue());
|
||||
List<ProjectLawsInventoryEO> projectLawsInventoryEOList = this.projectLawsInventoryEOService.list(lawsInventoryEOQueryWrap);
|
||||
if(CollectionUtils.isNotEmpty(projectLawsInventoryEOList)){
|
||||
// 根据项目进行分组
|
||||
@@ -94,7 +91,6 @@ public class designComplianceJob implements Job {
|
||||
continue;
|
||||
}
|
||||
|
||||
// 设计符合性
|
||||
Map<String, List<ProjectLawsInventoryEO>> lawsInventoryByDesignDutyIdGroupMap = lawsInventoryListByProjectLibraryId.stream().collect(Collectors.groupingBy(ProjectLawsInventoryEO::getDesignDutyId));
|
||||
for (Map.Entry<String, List<ProjectLawsInventoryEO>> lawsInventoryByDesignDutyIdGroup : lawsInventoryByDesignDutyIdGroupMap.entrySet()) {
|
||||
String designDutyId = lawsInventoryByDesignDutyIdGroup.getKey();
|
||||
@@ -107,27 +103,46 @@ public class designComplianceJob implements Job {
|
||||
|
||||
Map<String, Object> sendMsgDataListMap = this.disposeSendMsgDataList(designDutyDataList);
|
||||
|
||||
// 三条后结束的
|
||||
List<ProjectLawsInventoryEO> threeDaysList = (List<ProjectLawsInventoryEO>) sendMsgDataListMap.get("threeDaysList");
|
||||
if(CollectionUtils.isNotEmpty(threeDaysList)){
|
||||
Date designDueDate = threeDaysList.get(0).getDesignDueDate();
|
||||
// 十四天后结束的
|
||||
List<ProjectLawsInventoryEO> fourteenDaysList = (List<ProjectLawsInventoryEO>) sendMsgDataListMap.get("fourteenDaysList");
|
||||
if(CollectionUtils.isNotEmpty(fourteenDaysList)){
|
||||
Date designDueDate = fourteenDaysList.get(0).getDesignDueDate();
|
||||
String endTime = "";
|
||||
if(designDueDate != null){
|
||||
endTime = DateUtils.formatDate(designDueDate);
|
||||
}
|
||||
String serialNumbers = threeDaysList.stream().map(ProjectLawsInventoryEO::getSerialNumber).distinct().collect(Collectors.joining(","));
|
||||
// 给法规工程师发消息
|
||||
String serialNumbers = fourteenDaysList.stream().map(ProjectLawsInventoryEO::getSerialNumber).distinct().collect(Collectors.joining(","));
|
||||
// 给责任人发消息
|
||||
Map<String,Object> params = new HashMap<>();
|
||||
params.put("contentCn","您好,以下待办任务距离截止日期仅剩3天,请及时查看处理。");
|
||||
params.put("contentEn","Hello! This task will expire in 3 days. Please check and address it in a timely manner. Thank you!");
|
||||
params.put("contentCn","您好,您的任务将于14天后结束,请及时查看处理。");
|
||||
params.put("contentEn","Hello! Your task will end in 14 days. Please check and address it in a timely manner. ");
|
||||
params.put("projectLibraryId",projectLibraryId);
|
||||
params.put("endTime",endTime);
|
||||
params.put("userIdList",userIdList);
|
||||
params.put("serialNumbers",serialNumbers);
|
||||
params.put("flowTypeCn","设计符合性流程");
|
||||
params.put("flowTypeEn","Design Compliance Process");
|
||||
this.projectLawsInventoryEOService.sendMessageByTemplateId(TemplateInfoEnum2.REGULATION_TASK_CONFIRMATION4.getValue(),params);
|
||||
this.projectLawsInventoryEOService.sendMessageByTemplateId(TemplateInfoEnum2.DESIGN_COMPLIANCE_CONFIRMATION1.getValue(),params);
|
||||
}
|
||||
|
||||
// 七天后结束的
|
||||
List<ProjectLawsInventoryEO> sevenDaysList = (List<ProjectLawsInventoryEO>) sendMsgDataListMap.get("sevenDaysList");
|
||||
if(CollectionUtils.isNotEmpty(sevenDaysList)){
|
||||
Date designDueDate = sevenDaysList.get(0).getDesignDueDate();
|
||||
String endTime = "";
|
||||
if(designDueDate != null){
|
||||
endTime = DateUtils.formatDate(designDueDate);
|
||||
}
|
||||
String serialNumbers = sevenDaysList.stream().map(ProjectLawsInventoryEO::getSerialNumber).distinct().collect(Collectors.joining(","));
|
||||
// 给责任人发消息
|
||||
Map<String,Object> params = new HashMap<>();
|
||||
params.put("contentCn","您好,您的任务将于7天后结束,请及时查看处理。");
|
||||
params.put("contentEn","Hello! Your task will end in 7 days. Please check and address it in a timely manner. ");
|
||||
params.put("projectLibraryId",projectLibraryId);
|
||||
params.put("endTime",endTime);
|
||||
params.put("userIdList",userIdList);
|
||||
params.put("serialNumbers",serialNumbers);
|
||||
this.projectLawsInventoryEOService.sendMessageByTemplateId(TemplateInfoEnum2.DESIGN_COMPLIANCE_CONFIRMATION1.getValue(),params);
|
||||
}
|
||||
|
||||
// 当天结束的
|
||||
List<ProjectLawsInventoryEO> currentDaysList = (List<ProjectLawsInventoryEO>) sendMsgDataListMap.get("currentDaysList");
|
||||
if(CollectionUtils.isNotEmpty(currentDaysList)){
|
||||
@@ -139,15 +154,13 @@ public class designComplianceJob implements Job {
|
||||
String serialNumbers = currentDaysList.stream().map(ProjectLawsInventoryEO::getSerialNumber).distinct().collect(Collectors.joining(","));
|
||||
// 给法规工程师发消息
|
||||
Map<String,Object> params = new HashMap<>();
|
||||
params.put("contentCn","您好,以下待办任务已到截止日期,请尽快查看处理。");
|
||||
params.put("contentEn","Hello! This task will expire today. Please check and address it ASAP. Thank you!");
|
||||
params.put("contentCn","您好,您的任务将于今天到期,请尽快查看处理。");
|
||||
params.put("contentEn","Hello! Your task will expire today. Please check and address it ASAP. ");
|
||||
params.put("projectLibraryId",projectLibraryId);
|
||||
params.put("endTime",endTime);
|
||||
params.put("userIdList",userIdList);
|
||||
params.put("serialNumbers",serialNumbers);
|
||||
params.put("flowTypeCn","设计符合性流程");
|
||||
params.put("flowTypeEn","Design Compliance Process");
|
||||
this.projectLawsInventoryEOService.sendMessageByTemplateId(TemplateInfoEnum2.REGULATION_TASK_CONFIRMATION4.getValue(),params);
|
||||
this.projectLawsInventoryEOService.sendMessageByTemplateId(TemplateInfoEnum2.DESIGN_COMPLIANCE_CONFIRMATION1.getValue(),params);
|
||||
}
|
||||
// 逾期的
|
||||
List<ProjectLawsInventoryEO> overdueList = (List<ProjectLawsInventoryEO>) sendMsgDataListMap.get("overdueList");
|
||||
@@ -160,15 +173,13 @@ public class designComplianceJob implements Job {
|
||||
String serialNumbers = overdueList.stream().map(ProjectLawsInventoryEO::getSerialNumber).distinct().collect(Collectors.joining(","));
|
||||
// 给法规工程师发消息
|
||||
Map<String,Object> params = new HashMap<>();
|
||||
params.put("contentCn","您好,以下待办任务已逾期,请尽快处理。");
|
||||
params.put("contentEn","Hello! This task is overdue. Please address it ASAP. Thank you!");
|
||||
params.put("contentCn","您好,您的任务已逾期,请尽快查看处理。");
|
||||
params.put("contentEn","Hello! Your task is overdue. Please check and address it ASAP. ");
|
||||
params.put("projectLibraryId",projectLibraryId);
|
||||
params.put("endTime",endTime);
|
||||
params.put("userIdList",userIdList);
|
||||
params.put("serialNumbers",serialNumbers);
|
||||
params.put("flowTypeCn","设计符合性流程");
|
||||
params.put("flowTypeEn","Design Compliance Process");
|
||||
this.projectLawsInventoryEOService.sendMessageByTemplateId(TemplateInfoEnum2.REGULATION_TASK_CONFIRMATION5.getValue(),params);
|
||||
this.projectLawsInventoryEOService.sendMessageByTemplateId(TemplateInfoEnum2.DESIGN_COMPLIANCE_CONFIRMATION3.getValue(),params);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -516,7 +527,7 @@ public class designComplianceJob implements Job {
|
||||
}).collect(Collectors.toList());
|
||||
|
||||
// 七天后结束的
|
||||
List<ProjectLawsInventoryEO> threeDaysList = projectLawsInventoryEOList.stream().filter(data -> {
|
||||
List<ProjectLawsInventoryEO> sevenDaysList = projectLawsInventoryEOList.stream().filter(data -> {
|
||||
boolean flag = false;
|
||||
if(data.getDesignDueDate() != null){
|
||||
if (StringUtils.equals(sevenDaysStr, sdf.format(data.getDesignDueDate()))) {
|
||||
@@ -538,19 +549,35 @@ public class designComplianceJob implements Job {
|
||||
return flag;
|
||||
}).collect(Collectors.toList());
|
||||
|
||||
// 逾期的
|
||||
// 逾期的 3天 7天 14天
|
||||
List<ProjectLawsInventoryEO> overdueList = projectLawsInventoryEOList.stream().filter(data -> {
|
||||
// 只要早于当前日期都算逾期 不算当天。
|
||||
boolean flag = false;
|
||||
if(data.getDesignDueDate() != null){
|
||||
flag = (data.getDesignDueDate().before(currentDate) && !StringUtils.equals(currentDateStr, sdf.format(data.getDesignDueDate())));
|
||||
}
|
||||
Calendar day3Later = new GregorianCalendar();
|
||||
day3Later.setTime(data.getDesignDueDate());
|
||||
day3Later.add(Calendar.DATE, 3);
|
||||
Date overdue3Days = day3Later.getTime();
|
||||
|
||||
Calendar day7Later = new GregorianCalendar();
|
||||
day7Later.setTime(data.getDesignDueDate());
|
||||
day7Later.add(Calendar.DATE, 7);
|
||||
Date overdue7Days = day7Later.getTime();
|
||||
|
||||
Calendar day14Later = new GregorianCalendar();
|
||||
day14Later.setTime(data.getDesignDueDate());
|
||||
day14Later.add(Calendar.DATE, 14);
|
||||
Date overdue14Days = day14Later.getTime();
|
||||
|
||||
boolean flag = (
|
||||
StringUtils.equals(sdf.format(overdue3Days), sdf.format(currentDate))
|
||||
|| StringUtils.equals(sdf.format(overdue7Days), sdf.format(currentDate))
|
||||
|| StringUtils.equals(sdf.format(overdue14Days), sdf.format(currentDate))
|
||||
);
|
||||
return flag;
|
||||
}).collect(Collectors.toList());
|
||||
|
||||
result.put("currentDaysList",currentDaysList);
|
||||
result.put("threeDaysList",threeDaysList);
|
||||
result.put("sevenDaysList",sevenDaysList);
|
||||
result.put("overdueList",overdueList);
|
||||
result.put("fourteenDaysList",fourteenDaysList);
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
||||
+3
-3
@@ -280,10 +280,10 @@ public class ProjectTaskPlanningServiceImpl extends ServiceImpl<ProjectTaskPlann
|
||||
certificationSubmissionVo.setName(ProjectTaskPlanningNameEnum.CERTIFICATION_SUBMISSION.getValue());
|
||||
}
|
||||
|
||||
certificationSubmissionVo.setTime(projectTaskPlanning.getVerifyDeadline());
|
||||
if(projectTaskPlanning.getVerifyDeadline().after(trueNow)){
|
||||
certificationSubmissionVo.setTime(projectTaskPlanning.getCertificationSubmission());
|
||||
if(projectTaskPlanning.getCertificationSubmission().after(trueNow)){
|
||||
certificationSubmissionVo.setStatus(PlanStatusEnum.LESS_THAN_TIME.getValue());
|
||||
}else if(projectTaskPlanning.getVerifyDeadline().before(trueNow)){
|
||||
}else if(projectTaskPlanning.getCertificationSubmission().before(trueNow)){
|
||||
certificationSubmissionVo.setStatus(PlanStatusEnum.OUT_OF_DATE.getValue());
|
||||
}else{
|
||||
certificationSubmissionVo.setStatus(PlanStatusEnum.ON_GOING.getValue());
|
||||
|
||||
@@ -487,7 +487,7 @@
|
||||
<a-select allowClear
|
||||
:placeholder="$t('pleaseSelect')+$t('expeditionProcess')"
|
||||
mode="multiple"
|
||||
v-model="formInlineQuestion.questionStatus">
|
||||
v-model="formInlineQuestion.expeditingType">
|
||||
<a-select-option :value="item.value" v-for="item in questionList">
|
||||
<span class="itemOption-index" :title="item.name">
|
||||
{{ item.name }}
|
||||
@@ -559,7 +559,7 @@
|
||||
roleSwitchingList: [],
|
||||
formInlineQuestion: {},
|
||||
rulesRoleQuestion: {
|
||||
questionStatus: [
|
||||
expeditingType: [
|
||||
{
|
||||
required: true,
|
||||
message: this.$t('expeditionProcess') + this.$t('cannotEmpty'),
|
||||
@@ -569,11 +569,11 @@
|
||||
},
|
||||
questionList: [
|
||||
{
|
||||
value: '1',
|
||||
value: 'lawsInventoryDesignExpediting',
|
||||
name: this.$t('designComplianceProcess')
|
||||
},
|
||||
{
|
||||
value: '2',
|
||||
value: 'lawsInventoryVerifyExpediting',
|
||||
name: this.$t('validationComplianceProcess')
|
||||
}
|
||||
],
|
||||
@@ -1524,13 +1524,13 @@
|
||||
handleOkQuestion() {
|
||||
this.$refs.ruleFormQuestion.validate(valid => {
|
||||
let formInlineQuestion = JSON.parse(JSON.stringify(this.formInlineQuestion))
|
||||
if (formInlineQuestion.questionStatus && formInlineQuestion.questionStatus.length > 0) {
|
||||
formInlineQuestion.questionStatus = formInlineQuestion.questionStatus.join(',')
|
||||
if (formInlineQuestion.expeditingType && formInlineQuestion.expeditingType.length > 0) {
|
||||
formInlineQuestion.expeditingType = formInlineQuestion.expeditingType.join(',')
|
||||
}
|
||||
let query = {
|
||||
ids: this.questionIdList.join(','),
|
||||
projectLibraryId: this.$route.query.id,
|
||||
questionStatus: formInlineQuestion.questionStatus
|
||||
expeditingType: formInlineQuestion.expeditingType
|
||||
}
|
||||
this.confirmLoadingQuestion = true
|
||||
postAction('project/projectLawsInventoryEO/expediting', query).then((res) => {
|
||||
|
||||
@@ -326,14 +326,14 @@
|
||||
{
|
||||
align: 'left',
|
||||
slots: { title: 'projectInterfacePersonRegulationEngineerSetting' },
|
||||
dataIndex: 'engineeringInterfacePersonName',
|
||||
dataIndex: 'engineerLawSetName',
|
||||
ellipsis: true,
|
||||
width: 203
|
||||
},
|
||||
{
|
||||
align: 'left',
|
||||
slots: { title: 'projectInterfacePersonCertificationEngineerSetting' },
|
||||
dataIndex: 'engineeringInterfacePersonName',
|
||||
dataIndex: 'engineerAttSetName',
|
||||
ellipsis: true,
|
||||
width: 203
|
||||
},
|
||||
|
||||
@@ -50,9 +50,6 @@
|
||||
</template>
|
||||
<span style="float: right;overflow: hidden;" class="table-page-search-submitButtons">
|
||||
<a-col :md="12" :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" style="margin-left: 8px" @click="searchReset">{{$t('reset')}}</a-button>
|
||||
<a @click="handleToggleSearch" style="margin-left: 8px">
|
||||
@@ -103,14 +100,10 @@
|
||||
|
||||
<script>
|
||||
import { getAction, postAction } from '@/api/manage'
|
||||
import globalAdvancedQuery from '@/components/globalAdvancedQuery/index'
|
||||
import { ResizeHeader, ResizeColumnProvide } from '@/mixins/header'
|
||||
|
||||
export default {
|
||||
name: 'codeNumber',
|
||||
components: {
|
||||
globalAdvancedQuery
|
||||
},
|
||||
mixins: [ResizeHeader, ResizeColumnProvide],
|
||||
data() {
|
||||
return {
|
||||
@@ -184,7 +177,6 @@ export default {
|
||||
pageNo: 1,
|
||||
pageSize: 10,
|
||||
total: 0,
|
||||
fieldList: [],
|
||||
queryParamQuery: {},
|
||||
queryConditionVOList: []
|
||||
}
|
||||
@@ -202,7 +194,6 @@ export default {
|
||||
this.selectedRowKeys = []
|
||||
this.queryConditionVOList = []
|
||||
this.replacePage()
|
||||
this.queryConditionInventory()
|
||||
},
|
||||
// number() {
|
||||
// this.regulation = ''
|
||||
@@ -214,9 +205,6 @@ export default {
|
||||
searchReset() {
|
||||
this.pageNo = 1
|
||||
this.queryParam = {}
|
||||
this.queryConditionVOList = []
|
||||
this.$refs.globalAdvancedQueryRef.resetLine()
|
||||
this.$refs.globalAdvancedQueryRef.emitCallback()
|
||||
this.replacePage()
|
||||
},
|
||||
onChange(page, pageSize) {
|
||||
@@ -228,18 +216,6 @@ export default {
|
||||
this.pageSize = pageSize
|
||||
this.replacePage()
|
||||
},
|
||||
queryConditionInventory() {
|
||||
let query = {
|
||||
flag: 1
|
||||
}
|
||||
getAction(this.url.queryConditionInventory, query).then((res) => {
|
||||
if (res.success) {
|
||||
this.fieldList = res.result || []
|
||||
} else {
|
||||
this.fieldList = []
|
||||
}
|
||||
})
|
||||
},
|
||||
replacePage() {
|
||||
let queryConditionVOList = JSON.parse(JSON.stringify(this.queryConditionVOList))
|
||||
let query = {
|
||||
@@ -268,20 +244,6 @@ export default {
|
||||
handleCancel() {
|
||||
this.visible = false
|
||||
},
|
||||
handleSuperQuery(params, matchType) {
|
||||
let sqp = {}
|
||||
if (!params || (params && params.length == 0)) {
|
||||
this.queryConditionVOList = []
|
||||
this.$refs.globalAdvancedQueryRef.superQueryFlag = false
|
||||
} else {
|
||||
this.$refs.globalAdvancedQueryRef.superQueryFlag = true
|
||||
this.queryConditionVOList = params
|
||||
this.queryConditionVOList.forEach(res => {
|
||||
res.type = matchType
|
||||
})
|
||||
}
|
||||
this.replacePage()
|
||||
},
|
||||
handleSubmit() {
|
||||
if (this.selectedRowKeys && this.selectedRowKeys.length > 0) {
|
||||
this.confirmLoading = true
|
||||
|
||||
@@ -56,7 +56,7 @@
|
||||
|
||||
<div class="drawer-bootom-button">
|
||||
<a-button @click="handleCancel" style="margin-right: 16px">{{$t('cancel')}}</a-button>
|
||||
<a-button @click="handleSubmit(undefined)" type="primary" :loading="confirmLoading">{{$t('determine')}}</a-button>
|
||||
<a-button @click="handleSubmit" type="primary" :loading="confirmLoading">{{$t('determine')}}</a-button>
|
||||
</div>
|
||||
</a-drawer>
|
||||
</template>
|
||||
@@ -144,6 +144,9 @@ export default {
|
||||
// this.loading = false
|
||||
// }
|
||||
// })
|
||||
},
|
||||
handleSubmit(){
|
||||
|
||||
},
|
||||
onSelectChange(value) {
|
||||
this.selectedRowKeys = value
|
||||
|
||||
@@ -48,7 +48,7 @@
|
||||
:components="drag(columns,'columns')"
|
||||
:loading="loading"
|
||||
:pagination="false"
|
||||
:scroll="{x: '100%'}"
|
||||
:scroll="{x: '100%',y:'calc(100vh - 300px)'}"
|
||||
rowKey="id"
|
||||
:data-source="dataSource"
|
||||
:columns="columns"
|
||||
@@ -67,7 +67,7 @@
|
||||
<a class="text-operation"
|
||||
v-has="'dummyInventoryBase:issue'"
|
||||
@click="withdraw(record)">
|
||||
{{record.state == 2 ? $t('release') : $t('withdraw')}}
|
||||
{{!record.state || record.state == 2 ? $t('release') : $t('withdraw')}}
|
||||
</a>
|
||||
<!-- v-if="record.createBy == userData.username || administrators"-->
|
||||
<a class="text-operation" :disabled="record.state == 1?true:false"
|
||||
@@ -309,7 +309,7 @@ export default {
|
||||
withdraw(val) {
|
||||
let item = {}
|
||||
let content = ''
|
||||
if (val.state == 2) {
|
||||
if (!val.state || val.state == 2) {
|
||||
content = this.$t('confirmRelease')
|
||||
item.state = 1
|
||||
} else {
|
||||
|
||||
+132
-192
@@ -66,13 +66,29 @@
|
||||
v-model="queryParam.serialNumber"></j-input>
|
||||
</div>
|
||||
</a-col>
|
||||
<template v-if="toggleSearchStatus">
|
||||
<a-col :md="6" :sm="8">
|
||||
<div class="box-title-text">
|
||||
<div class="title-text" :title="$t('areaOfResponsibility')">
|
||||
<span>{{$t('areaOfResponsibility')}}</span>
|
||||
</div>
|
||||
<j-dict-select-tag class="box-input"
|
||||
v-model="queryParam.dutyTerritory"
|
||||
:placeholder="$t('PleaseSelect')+$t('areaOfResponsibility')"
|
||||
:type="'select'"
|
||||
:triggerChange="false" :dictCode="'duty_territory'"/>
|
||||
</div>
|
||||
</a-col>
|
||||
</template>
|
||||
<span style="float: right;overflow: hidden;margin-right: 11px" class="table-page-search-submitButtons">
|
||||
<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" 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 @click="handleToggleSearch" style="margin-left: 8px">
|
||||
{{ !toggleSearchStatus ? $t('open') : $t('away') }}
|
||||
<a-icon :type="toggleSearchStatus ? 'up' : 'down'"/>
|
||||
</a>
|
||||
</a-col>
|
||||
</span>
|
||||
</a-row>
|
||||
@@ -84,8 +100,8 @@
|
||||
<!-- style="float: left;font-size: 16px;font-weight: 400;color: #040B29;">-->
|
||||
<!-- {{$t('DocumentStandard')}}-->
|
||||
<!-- </div>-->
|
||||
<!-- v-if="isTrue"-->
|
||||
<div v-if="isTrue" class="operator-text" v-has="'dummyInventoryInfo:importData'" >
|
||||
<!-- v-if="isTrue"-->
|
||||
<div v-if="isTrue" class="operator-text" v-has="'dummyInventoryInfo:importData'">
|
||||
<ImportFile :url="url" :authDummyInventoryBaseId="$route.query.id" :isTrue="true"
|
||||
:accept="'.zip'"/>
|
||||
</div>
|
||||
@@ -94,7 +110,7 @@
|
||||
<div @click="handleModule"
|
||||
v-if="isTrue"
|
||||
v-has="'dummyInventoryInfo:exportTemplate'"
|
||||
class="operator-text" >
|
||||
class="operator-text">
|
||||
<a-icon type="download"/>
|
||||
{{$t('templateDownload')}}
|
||||
</div>
|
||||
@@ -107,19 +123,19 @@
|
||||
</div>
|
||||
<!-- 调取-->
|
||||
<!-- v-if="isTrue"-->
|
||||
<!-- <div v-if="isTrue"-->
|
||||
<!-- @click="transferClick"-->
|
||||
<!-- v-has="'dummyInventoryInfo:copyInfoByIds'"-->
|
||||
<!-- class="operator-text" >-->
|
||||
<!-- <a-icon type="profile"/>-->
|
||||
<!-- {{$t('Transfer')}}-->
|
||||
<!-- </div>-->
|
||||
<div v-if="isTrue"
|
||||
@click="transferClick"
|
||||
v-has="'dummyInventoryInfo:copyInfoByIds'"
|
||||
class="operator-text">
|
||||
<a-icon type="profile"/>
|
||||
{{$t('Transfer')}}
|
||||
</div>
|
||||
<!-- 添加-->
|
||||
<!-- v-if="isTrue"-->
|
||||
<div v-if="isTrue"
|
||||
@click="handleAdd"
|
||||
v-has="'dummyInventoryInfo:add'"
|
||||
class="operator-text" >
|
||||
class="operator-text">
|
||||
<a-icon type="plus"/>
|
||||
{{$t('add')}}
|
||||
</div>
|
||||
@@ -128,7 +144,7 @@
|
||||
<div @click="copyClick"
|
||||
v-if="isTrue"
|
||||
v-has="'dummyInventoryInfo:copyInfoByIds'"
|
||||
class="operator-text" >
|
||||
class="operator-text">
|
||||
<a-icon type="copy"/>
|
||||
{{$t('copy')}}
|
||||
</div>
|
||||
@@ -137,7 +153,7 @@
|
||||
<div v-if="isTrue"
|
||||
@click="batSettingClick"
|
||||
v-has="'dummyInventoryInfo:setBatch'"
|
||||
class="operator-text" >
|
||||
class="operator-text">
|
||||
<a-icon type="setting"/>
|
||||
{{$t('batSetting')}}
|
||||
</div>
|
||||
@@ -146,37 +162,37 @@
|
||||
<div @click="handleDel"
|
||||
v-if="isTrue"
|
||||
v-has="'dummyInventoryInfo:deleteBatch'"
|
||||
class="operator-text" >
|
||||
class="operator-text">
|
||||
<a-icon type="delete"/>
|
||||
{{$t('BatchDelete')}}
|
||||
</div>
|
||||
<!-- 自定义表头-->
|
||||
<!-- <a-popconfirm :visible="customizevisible" overlayClassName='popconfirmmize' placement="bottomRight" >-->
|
||||
<!-- <template slot="title" id="popconfirmmize">-->
|
||||
<!-- <div style="height:320px;overflow:scroll;overflow-x: auto;">-->
|
||||
<!-- <a-checkbox-->
|
||||
<!-- style='margin-bottom: 22px;'-->
|
||||
<!-- v-if="customizeList && customizeList.length"-->
|
||||
<!-- v-model="checkAll"-->
|
||||
<!-- :indeterminate="indeterminate"-->
|
||||
<!-- @change="onCheckAllChange"-->
|
||||
<!-- >{{$t('selectAll')}}-->
|
||||
<!-- </a-checkbox>-->
|
||||
<!-- <a-checkbox-group @change="onChange" v-model="checkedList" class="customize-text">-->
|
||||
<!-- <a-checkbox class="customize-text-title" :disabled='item.disabled' v-for="(item, key) in customizeList" :key="key" :value="item.field">{{ item.name }}-->
|
||||
<!-- </a-checkbox>-->
|
||||
<!-- </a-checkbox-group>-->
|
||||
<!-- <div class="drawer-bootom-button">-->
|
||||
<!-- <a-button @click="cancel" style="margin-right: 16px">{{$t('cancel')}}</a-button>-->
|
||||
<!-- <a-button @click="handleSubmit" type="primary" :loading="confirmLoading">{{$t('determine')}}</a-button>-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
<!-- </template>-->
|
||||
<!-- <div class="operator-text" style="position: relative" @click='getcustomize'>-->
|
||||
<!-- <a-icon type="setting"/>-->
|
||||
<!-- {{ $t('customize') }}-->
|
||||
<!-- </div>-->
|
||||
<!-- </a-popconfirm>-->
|
||||
<!-- <a-popconfirm :visible="customizevisible" overlayClassName='popconfirmmize' placement="bottomRight" >-->
|
||||
<!-- <template slot="title" id="popconfirmmize">-->
|
||||
<!-- <div style="height:320px;overflow:scroll;overflow-x: auto;">-->
|
||||
<!-- <a-checkbox-->
|
||||
<!-- style='margin-bottom: 22px;'-->
|
||||
<!-- v-if="customizeList && customizeList.length"-->
|
||||
<!-- v-model="checkAll"-->
|
||||
<!-- :indeterminate="indeterminate"-->
|
||||
<!-- @change="onCheckAllChange"-->
|
||||
<!-- >{{$t('selectAll')}}-->
|
||||
<!-- </a-checkbox>-->
|
||||
<!-- <a-checkbox-group @change="onChange" v-model="checkedList" class="customize-text">-->
|
||||
<!-- <a-checkbox class="customize-text-title" :disabled='item.disabled' v-for="(item, key) in customizeList" :key="key" :value="item.field">{{ item.name }}-->
|
||||
<!-- </a-checkbox>-->
|
||||
<!-- </a-checkbox-group>-->
|
||||
<!-- <div class="drawer-bootom-button">-->
|
||||
<!-- <a-button @click="cancel" style="margin-right: 16px">{{$t('cancel')}}</a-button>-->
|
||||
<!-- <a-button @click="handleSubmit" type="primary" :loading="confirmLoading">{{$t('determine')}}</a-button>-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
<!-- </template>-->
|
||||
<!-- <div class="operator-text" style="position: relative" @click='getcustomize'>-->
|
||||
<!-- <a-icon type="setting"/>-->
|
||||
<!-- {{ $t('customize') }}-->
|
||||
<!-- </div>-->
|
||||
<!-- </a-popconfirm>-->
|
||||
</div>
|
||||
<div style="width: 100%">
|
||||
<a-table
|
||||
@@ -224,20 +240,20 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { Base64 } from 'js-base64'
|
||||
import { mapGetters } from 'vuex'
|
||||
import { getAction, postAction, downloadFile, deleteAction } from '@/api/manage'
|
||||
import globalAdvancedQuery from '@/components/globalAdvancedQuery/index'
|
||||
import UpdateLog from '@/components/UpdateLog/index'
|
||||
import ImportFile from '@/components/ImportFile/index'
|
||||
import transferList from '../components/transferList'
|
||||
import addModel from '../components/addModel'
|
||||
import editModel from '../components/editModel'
|
||||
import batSetting from '../components/batSetting'
|
||||
import { ResizeHeader,ResizeColumnProvide } from '@/mixins/header'
|
||||
import { Base64 } from 'js-base64'
|
||||
import { mapGetters } from 'vuex'
|
||||
import { getAction, postAction, downloadFile, deleteAction } from '@/api/manage'
|
||||
import globalAdvancedQuery from '@/components/globalAdvancedQuery/index'
|
||||
import UpdateLog from '@/components/UpdateLog/index'
|
||||
import ImportFile from '@/components/ImportFile/index'
|
||||
import transferList from '../components/transferList'
|
||||
import addModel from '../components/addModel'
|
||||
import editModel from '../components/editModel'
|
||||
import batSetting from '../components/batSetting'
|
||||
import { ResizeHeader, ResizeColumnProvide } from '@/mixins/header'
|
||||
|
||||
export default {
|
||||
name:'certificationListMaintenance',
|
||||
export default {
|
||||
name: 'certificationListMaintenance',
|
||||
components: {
|
||||
globalAdvancedQuery,
|
||||
ImportFile,
|
||||
@@ -247,17 +263,17 @@ export default {
|
||||
editModel,
|
||||
batSetting
|
||||
},
|
||||
mixins: [ResizeHeader,ResizeColumnProvide],
|
||||
mixins: [ResizeHeader, ResizeColumnProvide],
|
||||
data() {
|
||||
return {
|
||||
title: '认证清单维护',
|
||||
isTrue: false,
|
||||
isFalse: false,
|
||||
isbutton: false,
|
||||
queryParamQuery: {},
|
||||
toggleSearchStatus:false,
|
||||
dataSource: [],
|
||||
url:{
|
||||
list: '/authDummy/authDummyInventoryInfoEO/page',
|
||||
url: {
|
||||
list: '/authDummy/authDummyInventoryInfoEO/list',
|
||||
logList: '/authDummy/authDummyLog/page',//更新log
|
||||
exportTemplate: '/authDummy/authDummyInventoryInfoEO/exportTemplate',//模板下载
|
||||
exportData: '/authDummy/authDummyInventoryInfoEO/exportData',//导出
|
||||
@@ -267,7 +283,7 @@ export default {
|
||||
editModel: '/authDummy/authDummyInventoryInfoEO/edit',//编辑
|
||||
setBatch: '/authDummy/authDummyInventoryInfoEO/setBatch',//批量设置
|
||||
importZipUrl: '/authDummy/authDummyInventoryInfoEO/importData',//导入
|
||||
number: '/project/projectLawsInventoryEO/list',
|
||||
number: '/project/projectLawsInventoryEO/list'
|
||||
},
|
||||
queryParam: {},
|
||||
orderByField: '',
|
||||
@@ -277,7 +293,8 @@ export default {
|
||||
align: 'left',
|
||||
dataIndex: 'category',
|
||||
width: 150,
|
||||
ellipsis: true,
|
||||
fixed: 'left',
|
||||
ellipsis: true
|
||||
},
|
||||
{
|
||||
title: this.$t('inspectionItems'),
|
||||
@@ -285,6 +302,7 @@ export default {
|
||||
dataIndex: 'inspectionItem',
|
||||
width: 150,
|
||||
ellipsis: true,
|
||||
fixed: 'left',
|
||||
scopedSlots: { customRender: 'inspectionItems' }
|
||||
},
|
||||
{
|
||||
@@ -292,35 +310,35 @@ export default {
|
||||
align: 'left',
|
||||
dataIndex: 'configItem',
|
||||
width: 150,
|
||||
ellipsis: true,
|
||||
ellipsis: true
|
||||
},
|
||||
{
|
||||
title: 'WVTA ID',
|
||||
align: 'left',
|
||||
dataIndex: 'wvtaId',
|
||||
width: 150,
|
||||
ellipsis: true,
|
||||
ellipsis: true
|
||||
},
|
||||
{
|
||||
title: this.$t('standard'),
|
||||
align: 'left',
|
||||
dataIndex: 'serialNumber',
|
||||
width: 150,
|
||||
ellipsis: true,
|
||||
ellipsis: true
|
||||
},
|
||||
{
|
||||
title: this.$t('areaOfResponsibility'),
|
||||
align: 'left',
|
||||
dataIndex: 'dutyTerritoryName',
|
||||
width: 200,
|
||||
ellipsis: true,
|
||||
ellipsis: true
|
||||
},
|
||||
{
|
||||
title: this.$t('typeOfDeliverables'),
|
||||
align: 'left',
|
||||
dataIndex: 'deliverableTypeName',
|
||||
width: 200,
|
||||
ellipsis: true,
|
||||
ellipsis: true
|
||||
},
|
||||
{
|
||||
title: this.$t('operation'),
|
||||
@@ -331,77 +349,13 @@ export default {
|
||||
}
|
||||
],
|
||||
selectedRowKeys: [],
|
||||
loading: false,
|
||||
fieldList: [
|
||||
{
|
||||
type: '',
|
||||
value: 'shi4Yong4Fan4Wei2',
|
||||
text: this.$t('scopeOfApplication'),
|
||||
dictCode: 'apply_scope'//只要 dictCode 有值,无论 type 是什么,都显示为字典下拉框
|
||||
},
|
||||
{
|
||||
type: '',
|
||||
value: 'state',
|
||||
text: this.$t('status'),
|
||||
dictCode: 'state'//只要 dictCode 有值,无论 type 是什么,都显示为字典下拉框
|
||||
},
|
||||
{
|
||||
type: 'string',
|
||||
value: 'correspondingStandard',
|
||||
text: this.$t('correspondingStandard')
|
||||
},
|
||||
{
|
||||
type: '',
|
||||
value: 'region',
|
||||
text: this.$t('zoneOfApplication'),
|
||||
dictCode: 'region'//只要 dictCode 有值,无论 type 是什么,都显示为字典下拉框
|
||||
},
|
||||
{
|
||||
type: '',
|
||||
value: 'implementType',
|
||||
text: this.$t('implementationCategory'),
|
||||
dictCode: 'implement_type'//只要 dictCode 有值,无论 type 是什么,都显示为字典下拉框
|
||||
},
|
||||
{
|
||||
type: 'date',
|
||||
value: 'xin1Che1Xing2Shi2Shi1Ri4Qi1',
|
||||
text: this.$t('ImplementationDate')
|
||||
},
|
||||
{
|
||||
type: 'date',
|
||||
value: 'implementTime',
|
||||
text: this.$t('vehicleInProductionDate')
|
||||
},
|
||||
{
|
||||
type: 'string',
|
||||
value: 'wvtaId',
|
||||
text: 'WVTA ID'
|
||||
},
|
||||
{
|
||||
type: '',
|
||||
value: 'attestationType',
|
||||
text: this.$t('certificationType'),
|
||||
dictCode: 'attestation_type'//只要 dictCode 有值,无论 type 是什么,都显示为字典下拉框
|
||||
},
|
||||
{
|
||||
type: '',
|
||||
value: 'attestationRank',
|
||||
text: this.$t('certificationLevel'),
|
||||
dictCode: 'attestation_rank'//只要 dictCode 有值,无论 type 是什么,都显示为字典下拉框
|
||||
},
|
||||
{
|
||||
type: '',
|
||||
value: 'dutyTerritory',
|
||||
text: this.$t('areaOfResponsibility'),
|
||||
dictCode: 'duty_territory'//只要 dictCode 有值,无论 type 是什么,都显示为字典下拉框
|
||||
}
|
||||
]
|
||||
loading: false
|
||||
}
|
||||
},
|
||||
created() {
|
||||
if (this.$route.query.title == '虚拟认证清单详情') {
|
||||
document.title = this.$t('virtualAuthenticationListDetails')
|
||||
this.columns.splice(7,1)
|
||||
this.columns.splice(7, 1)
|
||||
} else {
|
||||
document.title = this.$t('certificationListMaintenance')
|
||||
}
|
||||
@@ -412,27 +366,16 @@ export default {
|
||||
this.isFalse = this.$route.query.title == '虚拟认证清单详情' ? true : false
|
||||
this.getList()
|
||||
},
|
||||
computed: {
|
||||
},
|
||||
computed: {},
|
||||
methods: {
|
||||
...mapGetters(['userInfo']),
|
||||
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.getList()
|
||||
},
|
||||
onSelectChange(value) {
|
||||
this.selectedRowKeys = value
|
||||
},
|
||||
UpdateLogClick(){
|
||||
handleToggleSearch() {
|
||||
this.toggleSearchStatus = !this.toggleSearchStatus
|
||||
},
|
||||
UpdateLogClick() {
|
||||
this.$refs.UpdateLogRef.getList({ dummyInventoryBaseId: this.$route.query.id })
|
||||
},
|
||||
//搜索
|
||||
@@ -441,8 +384,6 @@ export default {
|
||||
},
|
||||
//清空
|
||||
searchReset() {
|
||||
this.$refs.globalAdvancedQueryRef.resetLine()
|
||||
this.$refs.globalAdvancedQueryRef.emitCallback()
|
||||
this.queryParam = {}
|
||||
this.getList()
|
||||
},
|
||||
@@ -451,9 +392,9 @@ export default {
|
||||
downloadFile(this.url.exportTemplate, this.$t('VirtualAuthenticationList') + this.$t('importTemplate') + '.xls', {})
|
||||
},
|
||||
//调取
|
||||
// transferClick() {
|
||||
// this.$refs.transferListRef.transferModel()
|
||||
// },
|
||||
transferClick() {
|
||||
this.$refs.transferListRef.transferModel()
|
||||
},
|
||||
//添加
|
||||
handleAdd() {
|
||||
this.$refs.addModelRef.addModel()
|
||||
@@ -463,7 +404,6 @@ export default {
|
||||
let selectedRowKeys = JSON.parse(JSON.stringify(this.selectedRowKeys))
|
||||
let query = {
|
||||
...this.queryParam,
|
||||
...this.queryParamQuery,
|
||||
ids: selectedRowKeys.join(','),
|
||||
authDummyInventoryBaseId: this.$route.query.id
|
||||
}
|
||||
@@ -511,7 +451,7 @@ export default {
|
||||
content: _this.$t('ConfirmBatchDeletion'),
|
||||
onOk() {
|
||||
let idList = JSON.parse(JSON.stringify(_this.selectedRowKeys))
|
||||
deleteAction (_this.url.deleteBatch, { ids: idList.join(',') }).then((res) => {
|
||||
deleteAction(_this.url.deleteBatch, { ids: idList.join(',') }).then((res) => {
|
||||
if (res.success) {
|
||||
_this.$message.success(_this.$t('OperationSuccessful'))
|
||||
_this.selectedRowKeys = []
|
||||
@@ -537,19 +477,19 @@ export default {
|
||||
},
|
||||
tableOnChange(pagination, filters, sorter) {
|
||||
this.orderBy = sorter.order == 'ascend' ? '1' : '2'
|
||||
if(sorter.columnKey == 'shi4Yong4Fan4Wei2_dictText'){
|
||||
if (sorter.columnKey == 'shi4Yong4Fan4Wei2_dictText') {
|
||||
this.orderByField = 'shi4Yong4Fan4Wei2'
|
||||
} else if(sorter.columnKey == 'state_dictText') {
|
||||
} else if (sorter.columnKey == 'state_dictText') {
|
||||
this.orderByField = 'state'
|
||||
} else if(sorter.columnKey == 'xin1Che1Xing2Shi2Shi1Ri4Qi1') {
|
||||
} else if (sorter.columnKey == 'xin1Che1Xing2Shi2Shi1Ri4Qi1') {
|
||||
this.orderByField = 'xin1_che1_xing2_shi2_shi1_ri4_qi1'
|
||||
} else if(sorter.columnKey == 'implementTime') {
|
||||
} else if (sorter.columnKey == 'implementTime') {
|
||||
this.orderByField = 'implement_time'
|
||||
} else if(sorter.columnKey == 'dutyTerritory_dictText') {
|
||||
} else if (sorter.columnKey == 'dutyTerritory_dictText') {
|
||||
this.orderByField = 'dutyTerritory'
|
||||
} else if(sorter.columnKey == 'attestationRank_dictText') {
|
||||
} else if (sorter.columnKey == 'attestationRank_dictText') {
|
||||
this.orderByField = 'attestationRank'
|
||||
} else{
|
||||
} else {
|
||||
this.orderByField = sorter.columnKey
|
||||
}
|
||||
this.getList()
|
||||
@@ -557,15 +497,14 @@ export default {
|
||||
getList() {
|
||||
let query = {
|
||||
...this.queryParam,
|
||||
...this.queryParamQuery,
|
||||
orderBy: this.orderBy,
|
||||
orderByField: this.orderByField,
|
||||
authDummyInventoryBaseId: this.$route.query.id
|
||||
}
|
||||
this.loading = true
|
||||
getAction(this.url.list,query).then((res) => {
|
||||
if(res.success) {
|
||||
this.dataSource = res.result.records || []
|
||||
getAction(this.url.list, query).then((res) => {
|
||||
if (res.success) {
|
||||
this.dataSource = res.result || []
|
||||
this.loading = false
|
||||
} else {
|
||||
this.loading = false
|
||||
@@ -590,16 +529,16 @@ export default {
|
||||
})
|
||||
}
|
||||
})
|
||||
},
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
<style lang='less' scoped>
|
||||
@import'~@assets/less/common.less';
|
||||
@import '~@assets/less/common.less';
|
||||
|
||||
.doc-detail {
|
||||
.doc-detail {
|
||||
background: #fff;
|
||||
height: 100%;
|
||||
|
||||
@@ -632,6 +571,7 @@ export default {
|
||||
display: flex;
|
||||
}
|
||||
}
|
||||
|
||||
.Virtual-detail-content {
|
||||
padding: 0 32px 0 32px;
|
||||
box-sizing: border-box;
|
||||
@@ -650,9 +590,9 @@ export default {
|
||||
line-height: 42px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.text-left {
|
||||
.text-left {
|
||||
font-size: 14px;
|
||||
font-weight: 400;
|
||||
color: #6F7385;
|
||||
@@ -661,9 +601,9 @@ export default {
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
}
|
||||
}
|
||||
|
||||
.text-right {
|
||||
.text-right {
|
||||
font-size: 16px;
|
||||
font-weight: 400;
|
||||
color: #040B29;
|
||||
@@ -672,17 +612,17 @@ export default {
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
}
|
||||
}
|
||||
|
||||
.box-title-text {
|
||||
.box-title-text {
|
||||
line-height: 1.4;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-bottom: 10px;
|
||||
margin-right: 20px;
|
||||
}
|
||||
}
|
||||
|
||||
.title-text {
|
||||
.title-text {
|
||||
width: 110px;
|
||||
color: #000F16;
|
||||
display: inline-block;
|
||||
@@ -694,31 +634,31 @@ export default {
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
}
|
||||
|
||||
.box-input {
|
||||
.box-input {
|
||||
display: inline-block;
|
||||
height: 38px;
|
||||
margin-top: 2px;
|
||||
}
|
||||
}
|
||||
|
||||
.box-button {
|
||||
.box-button {
|
||||
height: 38px;
|
||||
}
|
||||
}
|
||||
|
||||
.text-operation {
|
||||
.text-operation {
|
||||
margin-right: 8px;
|
||||
}
|
||||
}
|
||||
|
||||
.buttom-box {
|
||||
.buttom-box {
|
||||
width: 100%;
|
||||
text-align: right;
|
||||
font-size: 16px;
|
||||
font-weight: 500;
|
||||
color: #000F16;
|
||||
}
|
||||
}
|
||||
|
||||
::v-deep .ant-table-placeholder {
|
||||
margin-top: 8px!important;
|
||||
}
|
||||
::v-deep .ant-table-placeholder {
|
||||
margin-top: 8px !important;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user