|
@@ -136,7 +136,7 @@
|
136
|
136
|
<el-button icon="el-icon-plus" size="mini" @click="addPaymentList()" type="primary" plain></el-button>
|
137
|
137
|
</el-form-item>
|
138
|
138
|
<el-form-item label="合同备注" prop="remark">
|
139
|
|
- <el-input v-model="form.remark" placeholder="请输入合同备注" />
|
|
139
|
+ <el-input v-model="form.remark" placeholder="请输入合同备注" :disabled="taskName != '合同拟稿'" />
|
140
|
140
|
</el-form-item>
|
141
|
141
|
<el-row>
|
142
|
142
|
<el-col :span="6" :xs="24" :offset="12">
|
|
@@ -189,11 +189,11 @@
|
189
|
189
|
</td>
|
190
|
190
|
<td>
|
191
|
191
|
<el-input v-model="comment.comment" type="textarea" clearable :autosize="{ minRows: 4, maxRows: 10 }"
|
192
|
|
- :disabled="taskName == '合同拟稿' || !comment.commentUser"></el-input>
|
|
192
|
+ :disabled="taskName != '线上会审' || (taskName == '线上会审' && !comment.commentUser)"></el-input>
|
193
|
193
|
</td>
|
194
|
194
|
<td>
|
195
|
195
|
<el-input v-model="comment.document" clearable
|
196
|
|
- :disabled="taskName == '合同拟稿' || !comment.commentUser"></el-input>
|
|
196
|
+ :disabled="taskName != '线上会审' || (taskName == '线上会审' && !comment.commentUser)"></el-input>
|
197
|
197
|
</td>
|
198
|
198
|
<td>
|
199
|
199
|
<span class="auditor"> {{ comment.commentUser ? comment.commentUser.nickName : '' }} </span>
|
|
@@ -265,7 +265,7 @@
|
265
|
265
|
</table>
|
266
|
266
|
</el-form-item>
|
267
|
267
|
<el-form-item label="分管审批意见" prop="remark">
|
268
|
|
- <el-input v-model="form.managerComment" placeholder="请输入分管审批意见" />
|
|
268
|
+ <el-input v-model="form.managerComment" placeholder="请输入分管审批意见" :disabled="taskName != '分管审核'" />
|
269
|
269
|
</el-form-item>
|
270
|
270
|
<el-row>
|
271
|
271
|
<el-col :span="6" :xs="24" :offset="12">
|
|
@@ -281,14 +281,15 @@
|
281
|
281
|
</el-row>
|
282
|
282
|
<el-divider></el-divider>
|
283
|
283
|
<el-form-item label="签订日期" prop="signDate">
|
284
|
|
- <el-date-picker clearable v-model="form.signDate" type="date" value-format="yyyy-MM-dd" placeholder="请选择签订日期">
|
|
284
|
+ <el-date-picker clearable v-model="form.signDate" type="date" value-format="yyyy-MM-dd" placeholder="请选择签订日期"
|
|
285
|
+ :disabled="taskName != '合同签订'">
|
285
|
286
|
</el-date-picker>
|
286
|
287
|
</el-form-item>
|
287
|
288
|
<el-form-item label="签订备注" prop="signRemark">
|
288
|
|
- <el-input v-model="form.signRemark" placeholder="请输入签订备注" />
|
|
289
|
+ <el-input v-model="form.signRemark" placeholder="请输入签订备注" :disabled="taskName != '合同签订'" />
|
289
|
290
|
</el-form-item>
|
290
|
291
|
<el-form-item label="签订扫描件" prop="signScan">
|
291
|
|
- <el-input v-model="form.signScan" placeholder="请输入签订扫描件" />
|
|
292
|
+ <el-input v-model="form.signScan" placeholder="请输入签订扫描件" :disabled="taskName != '合同签订'" />
|
292
|
293
|
</el-form-item>
|
293
|
294
|
</el-form>
|
294
|
295
|
<div style="text-align: center;">
|
|
@@ -315,7 +316,7 @@ import { listUser } from '@/api/system/user'
|
315
|
316
|
import { listContract, getContract, delContract, addContract, updateContract } from "@/api/oa/contract/contract";
|
316
|
317
|
import { getContractWork, addContractWork } from "@/api/oa/contract/contractWork";
|
317
|
318
|
import { getContractPayment, addContractPayment } from "@/api/oa/contract/contractPayment";
|
318
|
|
-import { getContractComment, addContractComment, delContractComment } from "@/api/oa/contract/contractComment";
|
|
319
|
+import { getContractComment, addContractComment, updateContractComment } from "@/api/oa/contract/contractComment";
|
319
|
320
|
import { getContractMeeting, addContractMeeting } from "@/api/oa/contract/contractMeeting";
|
320
|
321
|
import { complete, rejectTask, returnList, returnTask, getNextFlowNode, delegate, flowTaskForm, } from "@/api/flowable/todo";
|
321
|
322
|
import { listTender, getTender } from "@/api/oa/tender/tender";
|
|
@@ -501,11 +502,14 @@ export default {
|
501
|
502
|
if (res.data)
|
502
|
503
|
this.commentList = res.data;
|
503
|
504
|
for (let comment of this.commentList) {
|
504
|
|
- if (comment.userId != this.$store.getters.userId) {
|
505
|
|
- comment.commentUser = undefined;
|
|
505
|
+ if (comment.commentTime == undefined) {
|
|
506
|
+ if (comment.userId != this.$store.getters.userId) {
|
|
507
|
+ comment.commentUser = undefined;
|
|
508
|
+ }
|
|
509
|
+ else {
|
|
510
|
+ comment.commentTime = parseTime(new Date(), '{y}-{m}-{d}');
|
|
511
|
+ }
|
506
|
512
|
}
|
507
|
|
- else
|
508
|
|
- comment.commentTime = parseTime(new Date(), '{y}-{m}-{d}');
|
509
|
513
|
}
|
510
|
514
|
});
|
511
|
515
|
getContractMeeting(this.taskForm.formId).then(res => {
|
|
@@ -759,12 +763,10 @@ export default {
|
759
|
763
|
});
|
760
|
764
|
}
|
761
|
765
|
else if (this.taskName == '线上会审') {
|
762
|
|
- delContractComment([this.form.contractId]).then(res => {
|
763
|
|
- for (let comment of this.commentList) {
|
764
|
|
- commment.contractId = this.form.contractId
|
765
|
|
- addContractComment(comment);
|
766
|
|
- }
|
767
|
|
- })
|
|
766
|
+ console.log(this.commentList);
|
|
767
|
+ for (let comment of this.commentList) {
|
|
768
|
+ updateContractComment(comment);
|
|
769
|
+ }
|
768
|
770
|
getUsersManageLeader({ userId: this.form.drafter }).then(res => {
|
769
|
771
|
let userId = res.data.userId;
|
770
|
772
|
this.$set(this.taskForm.variables, "approval", userId);
|