|
@@ -3930,9 +3930,19 @@
|
|
|
|
|
|
//确定选择参与人
|
|
//确定选择参与人
|
|
chooseParticip() {
|
|
chooseParticip() {
|
|
- this.chooseParticipVisible = false;
|
|
|
|
var chosenList = this.$refs.chooseMembTree.getCheckedNodes();
|
|
var chosenList = this.$refs.chooseMembTree.getCheckedNodes();
|
|
this.chosenMembList = chosenList.filter(item=>item.isUser == 1);
|
|
this.chosenMembList = chosenList.filter(item=>item.isUser == 1);
|
|
|
|
+ //针对专业版,只能选择一个人进行代填,防止任务有问题
|
|
|
|
+ if (this.user.company.packageProject == 1) {
|
|
|
|
+ if (this.chosenMembList.length > 1) {
|
|
|
|
+ this.$message({
|
|
|
|
+ message: '每次仅支持代填一个人',
|
|
|
|
+ type: "error",
|
|
|
|
+ });
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ this.chooseParticipVisible = false;
|
|
this.workForm.userNames = '';
|
|
this.workForm.userNames = '';
|
|
this.workForm.userId = [];
|
|
this.workForm.userId = [];
|
|
this.participator = [];
|
|
this.participator = [];
|
|
@@ -4230,9 +4240,10 @@
|
|
getRecentTaskList(domain, index) {
|
|
getRecentTaskList(domain, index) {
|
|
//刷新任务时,清空服务
|
|
//刷新任务时,清空服务
|
|
this.$set(domain, 'sapServiceId', null);
|
|
this.$set(domain, 'sapServiceId', null);
|
|
|
|
+ this.$set(domain, 'taskId', null);
|
|
var param = {
|
|
var param = {
|
|
projectId: domain.projectId,
|
|
projectId: domain.projectId,
|
|
- isSubstitude:this.isSubstitude?1:0
|
|
|
|
|
|
+ isSubstitude:this.isSubstitude?1:0,
|
|
};
|
|
};
|
|
if (domain.groupId) {
|
|
if (domain.groupId) {
|
|
param.groupId = domain.groupId;
|
|
param.groupId = domain.groupId;
|
|
@@ -4240,6 +4251,19 @@
|
|
if (domain.stage) {
|
|
if (domain.stage) {
|
|
param.stage = domain.stage;
|
|
param.stage = domain.stage;
|
|
}
|
|
}
|
|
|
|
+ //专业版代填,获取代填员工的任务
|
|
|
|
+ if (this.user.company.packageProject==1 && this.isSubstitude) {
|
|
|
|
+ if (!this.workForm.userId || this.workForm.userId.length == 0) {
|
|
|
|
+ this.$message({
|
|
|
|
+ message: '请选择代填的员工',
|
|
|
|
+ type: "error"
|
|
|
|
+ });
|
|
|
|
+ return;
|
|
|
|
+ } else {
|
|
|
|
+ param.userId = this.workForm.userId[0];
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
this.http.post('/task/getRecentTask',param,
|
|
this.http.post('/task/getRecentTask',param,
|
|
res => {
|
|
res => {
|
|
if (res.code == "ok") {
|
|
if (res.code == "ok") {
|