Merge remote-tracking branch 'origin/master'
This commit is contained in:
+37
@@ -725,17 +725,31 @@ public class BussDocumentLibraryEOServiceImpl extends ServiceImpl<BussDocumentLi
|
||||
List<OnlCgformField> treeOnlCgformFieldList = fieldList.stream().filter(e -> FieldTypeEnum.TREE.getValue().equals(e.getFieldShowType())).collect(Collectors.toList());
|
||||
List<String> treeList = treeOnlCgformFieldList.stream().map(OnlCgformField::getDbFieldName).collect(Collectors.toList());
|
||||
List<OnlCgformField> onlCgformFieldDateMoreList = fieldList.stream().filter(e -> FieldTypeEnum.DATE_MORE.getValue().equals(e.getFieldShowType())).collect(Collectors.toList());
|
||||
List<OnlCgformField> onlCgformFieldPersonList = fieldList.stream().filter(e -> FieldTypeEnum.PERSON.getValue().equals(e.getFieldShowType())).collect(Collectors.toList());
|
||||
List<String> personList = onlCgformFieldPersonList.stream().map(OnlCgformField::getDbFieldName).collect(Collectors.toList());
|
||||
List<String> dateMoreList = onlCgformFieldDateMoreList.stream().map(OnlCgformField::getDbFieldName).collect(Collectors.toList());
|
||||
//通过id查询数据
|
||||
List<Map<String, Object>> dataList = bussDocumentLibraryEOMapper.selectMapsAll(id);
|
||||
//多选日期
|
||||
List<String> userNameList = new ArrayList<>();
|
||||
for (Map.Entry<String, Object> entry : dataList.get(0).entrySet()) {
|
||||
String key = entry.getKey();
|
||||
if(personList.contains(key)){
|
||||
String value = (String) entry.getValue();
|
||||
userNameList.addAll(Arrays.asList(value.split(",")));
|
||||
}
|
||||
if(dateMoreList.contains(key) && ObjectUtils.isNotEmpty(entry.getValue())){
|
||||
String value = (String) entry.getValue();
|
||||
entry.setValue(Arrays.asList(value.split(",")));
|
||||
}
|
||||
}
|
||||
List<SysUser> userList = new ArrayList<>();
|
||||
if(userNameList.size() != 0){
|
||||
LambdaQueryWrapper<SysUser> wrapper = new LambdaQueryWrapper<>();
|
||||
wrapper.in(SysUser::getUsername,userNameList);
|
||||
userList = sysUserService.list(wrapper);
|
||||
}
|
||||
|
||||
|
||||
//查询所有
|
||||
List<Map<String, Object>> mapList = bussDocumentLibraryEOMapper.selectMapsAll(null);
|
||||
@@ -750,6 +764,7 @@ public class BussDocumentLibraryEOServiceImpl extends ServiceImpl<BussDocumentLi
|
||||
}
|
||||
}
|
||||
dataList.get(0).put("replaced_standard", StringUtils.join(replacedStandardNameList, ","));
|
||||
List<String> personKeyList = new ArrayList<>();
|
||||
for (Map.Entry<String, Object> entry : dataList.get(0).entrySet()) {
|
||||
if(treeList.contains(entry.getKey())){
|
||||
String value = (String) entry.getValue();
|
||||
@@ -759,6 +774,28 @@ public class BussDocumentLibraryEOServiceImpl extends ServiceImpl<BussDocumentLi
|
||||
dataList.get(0).put(entry.getKey(), null);
|
||||
}
|
||||
}
|
||||
if(personList.contains(entry.getKey())){
|
||||
if(StringUtils.isNotBlank((String)entry.getValue())){
|
||||
personKeyList.add(entry.getKey());
|
||||
}
|
||||
}
|
||||
}
|
||||
//标准选择字段,添加id(用于回显)
|
||||
if(personKeyList.size() != 0){
|
||||
for (String personKey : personKeyList) {
|
||||
String value = (String)dataList.get(0).get(personKey);
|
||||
List<SysUser> users = new ArrayList<>();
|
||||
if(userList.size() != 0 && StringUtils.isNotBlank(value)){
|
||||
for (String s : value.split(",")) {
|
||||
List<SysUser> sysUserList = userList.stream().filter(e -> e.getUsername().equals(s)).collect(Collectors.toList());
|
||||
users.addAll(sysUserList);
|
||||
}
|
||||
if(users.size() != 0){
|
||||
List<String> userIdList = users.stream().map(SysUser::getId).collect(Collectors.toList());
|
||||
dataList.get(0).put(personKey + "_id",StringUtils.join(userIdList,","));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return dataList;
|
||||
}
|
||||
|
||||
+1
-1
@@ -685,7 +685,7 @@ public class DummyInventoryBaseEOServiceImpl extends ServiceImpl<DummyInventoryB
|
||||
//封装消息的实体类
|
||||
SysAnnouncement sysAnnouncement = bussDocumentLibraryEOService.getSysAnnouncement(userIdList, content, contentInfo);
|
||||
sysAnnouncementService.saveAnnouncement(sysAnnouncement);
|
||||
bussDocumentLibraryEOService.sendWebsocket(idTemp, idTemp);
|
||||
bussDocumentLibraryEOService.sendWebsocket(idTemp, contentInfo);
|
||||
//飞书
|
||||
try {
|
||||
iFeishuService.batchSendMessage(thirdIdList.toArray(new String[]{}), contentInfo, MessageTypeEnum.PUSH.getName(), href);
|
||||
|
||||
@@ -109,6 +109,7 @@
|
||||
if (this.isSingleChoice) {
|
||||
if (this.userIds.length > 1) {
|
||||
this.$message.warning(this.$t('onlyOnePersonCanBeSelected'))
|
||||
return
|
||||
}
|
||||
}
|
||||
let userIds = JSON.parse(JSON.stringify(this.userIds))
|
||||
|
||||
@@ -54,7 +54,7 @@
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
z-index: 9999900;
|
||||
z-index: 999;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background-color: rgba(255, 255, 255, 0.9);
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
<span class="top-admin" :title="prcTypeName[item.prcType]">{{prcTypeName[item.prcType]}}</span>
|
||||
</div>
|
||||
<div class="button">
|
||||
{{moment(item.createTime).format('YYYY-MM-DD HH:mm:ss')}}
|
||||
{{item.creatTime}}
|
||||
</div>
|
||||
<div class="with">
|
||||
{{$t('Pending')}}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<div class="header-text">
|
||||
{{$t('engineeringConfirmation')}}
|
||||
<a-icon :title="$t('pleaseReviewTask')"
|
||||
type="question-circle" />
|
||||
type="question-circle"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="header-content">
|
||||
@@ -395,7 +395,7 @@
|
||||
{
|
||||
title: 'ID',
|
||||
dataIndex: 'serialNumber',
|
||||
align: 'left',
|
||||
align: 'left'
|
||||
},
|
||||
{
|
||||
title: this.$t('completedBy'),
|
||||
@@ -604,7 +604,7 @@
|
||||
this.dataSourceTable.forEach(val => {
|
||||
this.distributionEngineerList.push({
|
||||
name: val.userName,
|
||||
id:val.id,
|
||||
id: val.id,
|
||||
userId: val.userId,
|
||||
deliveryInstructions: val.deliveryInstructions
|
||||
})
|
||||
@@ -614,7 +614,7 @@
|
||||
}
|
||||
this.formInline.userId = userId.join(',')
|
||||
this.formInline.userName = userName.join(',')
|
||||
this.formInline = {...this.formInline}
|
||||
this.formInline = { ...this.formInline }
|
||||
}
|
||||
this.loadingTable = false
|
||||
} else {
|
||||
@@ -670,6 +670,7 @@
|
||||
},
|
||||
PersonnelSelectionChange(value, id) {
|
||||
this.formInline[value] = id
|
||||
this.distributionEngineerList = []
|
||||
if (id) {
|
||||
this.formInline.userName.split(',').forEach((res, index) => {
|
||||
this.distributionEngineerList.push({
|
||||
|
||||
@@ -190,7 +190,6 @@
|
||||
postAction('/workFlow/completeTask', query).then((res) => {
|
||||
if (res.success) {
|
||||
this.$message.success(this.$t('OperationSuccessful'))
|
||||
this.loading = false
|
||||
if (this.$route.query.taskDefinitionKey == 'zrrjsrw' || this.$route.query.taskDefinitionKey == 'zrrqr') {
|
||||
if (value.flag == 0) {
|
||||
if (this.queryProject.verifyDeliverableType) {
|
||||
@@ -204,21 +203,32 @@
|
||||
}
|
||||
if (!this.queryProject.verifyDeliverableType && !this.queryProject.prehomoDeliverableType &&
|
||||
!this.queryProject.designDeliverableType) {
|
||||
window.close()
|
||||
setTimeout(() => {
|
||||
this.loading = false
|
||||
window.close()
|
||||
}, 1000)
|
||||
// this.$router.push({
|
||||
// path: '/ProcessCenter'
|
||||
// })
|
||||
}
|
||||
} else {
|
||||
window.close()
|
||||
setTimeout(() => {
|
||||
this.loading = false
|
||||
window.close()
|
||||
}, 1000)
|
||||
// this.$router.push({
|
||||
// path: '/ProcessCenter'
|
||||
// })
|
||||
}
|
||||
} else {
|
||||
this.$router.push({
|
||||
path: '/ProcessCenter'
|
||||
})
|
||||
setTimeout(() => {
|
||||
this.loading = false
|
||||
window.close()
|
||||
}, 1000)
|
||||
|
||||
// this.$router.push({
|
||||
// path: '/ProcessCenter'
|
||||
// })
|
||||
}
|
||||
} else {
|
||||
this.loading = false
|
||||
@@ -252,13 +262,12 @@
|
||||
if (res.success) {
|
||||
this.visible = false
|
||||
setTimeout(() => {
|
||||
this.loading = false
|
||||
window.close()
|
||||
}, 2000)
|
||||
}, 3000)
|
||||
// this.$router.push({
|
||||
// path: '/ProcessCenter'
|
||||
// })
|
||||
} else {
|
||||
this.$message.warning(this.$t('operationFailed'))
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
@@ -302,13 +302,16 @@
|
||||
}
|
||||
putAction(this.url.dreSubmit, query).then((res) => {
|
||||
if (res.success) {
|
||||
this.loading = false
|
||||
this.$message.success(this.$t('OperationSuccessful'))
|
||||
// this.$router.push({
|
||||
// path: '/ProjectDetails',
|
||||
// query: this.$route.query
|
||||
// })
|
||||
window.close()
|
||||
setTimeout(() => {
|
||||
this.loading = false
|
||||
window.close()
|
||||
}, 1000)
|
||||
|
||||
} else {
|
||||
this.loading = false
|
||||
this.$message.warning(this.$t('operationFailed'))
|
||||
@@ -326,7 +329,6 @@
|
||||
postAction('/workFlow/completeTask', query).then((res) => {
|
||||
if (res.success) {
|
||||
this.$message.success(this.$t('OperationSuccessful'))
|
||||
this.loading = false
|
||||
this.edit()
|
||||
// this.$router.push({
|
||||
// path: '/ProjectDetails',
|
||||
@@ -345,7 +347,10 @@
|
||||
}
|
||||
putAction(this.url.edit, query).then((res) => {
|
||||
if (res.success) {
|
||||
window.close()
|
||||
setTimeout(() => {
|
||||
this.loading = false
|
||||
window.close()
|
||||
}, 1000)
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user