|
@@ -153,9 +153,9 @@
|
153
|
153
|
<el-divider></el-divider>
|
154
|
154
|
<el-form-item label="评审方式" prop="commentType">
|
155
|
155
|
<el-radio-group v-model="form.commentType" @change="changeCommentType" :disabled="taskName != '合同拟稿'">
|
156
|
|
- <el-radio :label="0">无须评审</el-radio>
|
157
|
|
- <el-radio :label="1">会议评审</el-radio>
|
158
|
|
- <el-radio :label="2">线上评审</el-radio>
|
|
156
|
+ <el-radio :label="'0'">无须评审</el-radio>
|
|
157
|
+ <el-radio :label="'1'">会议评审</el-radio>
|
|
158
|
+ <el-radio :label="'2'">线上评审</el-radio>
|
159
|
159
|
</el-radio-group>
|
160
|
160
|
</el-form-item>
|
161
|
161
|
<el-form-item label="线上评审:" v-if="commentOpen">
|
|
@@ -189,16 +189,16 @@
|
189
|
189
|
</td>
|
190
|
190
|
<td>
|
191
|
191
|
<el-input v-model="comment.comment" type="textarea" clearable
|
192
|
|
- :autosize="{ minRows: 4, maxRows: 10 }"></el-input>
|
|
192
|
+ :autosize="{ minRows: 4, maxRows: 10 }" :disabled="taskName == '合同拟稿' || !comment.commentUser"></el-input>
|
193
|
193
|
</td>
|
194
|
194
|
<td>
|
195
|
|
- <el-input v-model="comment.document" clearable></el-input>
|
|
195
|
+ <el-input v-model="comment.document" clearable :disabled="taskName == '合同拟稿' || !comment.commentUser"></el-input>
|
196
|
196
|
</td>
|
197
|
197
|
<td>
|
198
|
|
- <span class="auditor"> {{ comment.User ? comment.User.nickName : commentUser }} </span>
|
|
198
|
+ <span class="auditor"> {{ comment.commentUser ? comment.commentUser.nickName : commentUser }} </span>
|
199
|
199
|
</td>
|
200
|
200
|
<td>
|
201
|
|
- <span> {{ form.commentTime ? form.commentTime : commentTime }} </span>
|
|
201
|
+ <span> {{ comment.commentTime }} </span>
|
202
|
202
|
</td>
|
203
|
203
|
<td>
|
204
|
204
|
<el-button type="danger" icon="el-icon-minus" size="mini" circle
|
|
@@ -342,8 +342,6 @@ export default {
|
342
|
342
|
draftTime: undefined,
|
343
|
343
|
managerUser: '',
|
344
|
344
|
managerTime: undefined,
|
345
|
|
- commentUser: '',
|
346
|
|
- commentTime: undefined,
|
347
|
345
|
// 遮罩层
|
348
|
346
|
loading: true,
|
349
|
347
|
// 选中数组
|
|
@@ -375,7 +373,7 @@ export default {
|
375
|
373
|
signDate: null,
|
376
|
374
|
signRemark: null,
|
377
|
375
|
signScan: null,
|
378
|
|
- commentType: null
|
|
376
|
+ commentType: ''
|
379
|
377
|
},
|
380
|
378
|
// 表单参数
|
381
|
379
|
form: {},
|
|
@@ -472,6 +470,18 @@ export default {
|
472
|
470
|
else {
|
473
|
471
|
this.formTotal = 1;
|
474
|
472
|
this.form = res.data;
|
|
473
|
+ if (this.form.commentType == '0') {
|
|
474
|
+ this.commentOpen = false;
|
|
475
|
+ this.meetingOpen = false;
|
|
476
|
+ }
|
|
477
|
+ else if (this.form.commentType == '1') {
|
|
478
|
+ this.commentOpen = false;
|
|
479
|
+ this.meetingOpen = true;
|
|
480
|
+ }
|
|
481
|
+ else if (this.form.commentType == '2') {
|
|
482
|
+ this.commentOpen = true;
|
|
483
|
+ this.meetingOpen = false;
|
|
484
|
+ }
|
475
|
485
|
if (res.data.tenderId) {
|
476
|
486
|
getTender(res.data.tenderId).then(response => {
|
477
|
487
|
this.chooseTender = response.data;
|
|
@@ -489,6 +499,14 @@ export default {
|
489
|
499
|
getContractComment(this.taskForm.formId).then(res => {
|
490
|
500
|
if (res.data)
|
491
|
501
|
this.commentList = res.data;
|
|
502
|
+ for (let comment of this.commentList) {
|
|
503
|
+ if (comment.userId != this.$store.getters.userId) {
|
|
504
|
+ comment.commentUser = undefined;
|
|
505
|
+ }
|
|
506
|
+ else
|
|
507
|
+ comment.commentTime = parseTime(new Date(), '{y}-{m}-{d}');
|
|
508
|
+ }
|
|
509
|
+ console.log(this.commentList);
|
492
|
510
|
});
|
493
|
511
|
getContractMeeting(this.taskForm.formId).then(res => {
|
494
|
512
|
if (res.data)
|
|
@@ -644,15 +662,15 @@ export default {
|
644
|
662
|
}
|
645
|
663
|
},
|
646
|
664
|
changeCommentType(val) {
|
647
|
|
- if (val == 0) {
|
|
665
|
+ if (val == '0') {
|
648
|
666
|
this.commentOpen = false;
|
649
|
667
|
this.meetingOpen = false;
|
650
|
668
|
}
|
651
|
|
- else if (val == 1) {
|
|
669
|
+ else if (val == '1') {
|
652
|
670
|
this.commentOpen = false;
|
653
|
671
|
this.meetingOpen = true;
|
654
|
672
|
}
|
655
|
|
- else if (val == 2) {
|
|
673
|
+ else if (val == '2') {
|
656
|
674
|
this.commentOpen = true;
|
657
|
675
|
this.meetingOpen = false;
|
658
|
676
|
for (let comment of this.commentList) {
|
|
@@ -685,7 +703,7 @@ export default {
|
685
|
703
|
signDate: null,
|
686
|
704
|
signRemark: null,
|
687
|
705
|
signScan: null,
|
688
|
|
- commentType: null
|
|
706
|
+ commentType: ''
|
689
|
707
|
};
|
690
|
708
|
this.resetForm("form");
|
691
|
709
|
},
|
|
@@ -752,7 +770,7 @@ export default {
|
752
|
770
|
getUsersManageLeader({ userId: this.$store.getters.userId }).then(res => {
|
753
|
771
|
let userId = res.data.userId;
|
754
|
772
|
this.$set(this.taskForm.variables, "approval", userId);
|
755
|
|
- this.$set(this.taskForm.variables, "commentType", 0);
|
|
773
|
+ this.$set(this.taskForm.variables, "commentType", '0');
|
756
|
774
|
complete(this.taskForm).then(response => {
|
757
|
775
|
this.$modal.msgSuccess(response.msg);
|
758
|
776
|
this.$emit('goBack')
|
|
@@ -767,7 +785,7 @@ export default {
|
767
|
785
|
approvalList.push(commment.userId)
|
768
|
786
|
}
|
769
|
787
|
this.$set(this.taskForm.variables, "approvalList", approvalList);
|
770
|
|
- this.$set(this.taskForm.variables, "commentType", 2);
|
|
788
|
+ this.$set(this.taskForm.variables, "commentType", '2');
|
771
|
789
|
complete(this.taskForm).then(response => {
|
772
|
790
|
this.$modal.msgSuccess(response.msg);
|
773
|
791
|
this.$emit('goBack')
|
|
@@ -777,7 +795,7 @@ export default {
|
777
|
795
|
this.meetingForm.contractId = this.form.contractId;
|
778
|
796
|
addContractMeeting(this.meetingForm);
|
779
|
797
|
this.$set(this.taskForm.variables, "approval", this.meetingForm.hostId);
|
780
|
|
- this.$set(this.taskForm.variables, "commentType", 1);
|
|
798
|
+ this.$set(this.taskForm.variables, "commentType", '1');
|
781
|
799
|
complete(this.taskForm).then(response => {
|
782
|
800
|
this.$modal.msgSuccess(response.msg);
|
783
|
801
|
this.$emit('goBack')
|