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