|
@@ -5,6 +5,11 @@
|
5
|
5
|
<el-col :span="24" :md="flowDisabled ? 18 : 24">
|
6
|
6
|
<h2 class="text-center">借款申请</h2>
|
7
|
7
|
<el-divider></el-divider>
|
|
8
|
+ <div class="mt20 mb20" v-if="showAlter && flowDisabled">
|
|
9
|
+ <el-alert title="任务被退回,请修改后重新提交" type="error" :closable="false">
|
|
10
|
+ <return-comment :taskForm="taskForm" @isReturn="isReturn"></return-comment>
|
|
11
|
+ </el-alert>
|
|
12
|
+ </div>
|
8
|
13
|
<el-form ref="form" :model="form" :rules="rules" label-width="100px">
|
9
|
14
|
<el-row :gutter="20">
|
10
|
15
|
<el-col :md="6" :span="24">
|
|
@@ -243,8 +248,8 @@
|
243
|
248
|
</div>
|
244
|
249
|
<el-divider></el-divider>
|
245
|
250
|
<el-form-item label="支付凭证" prop="lendDocument">
|
246
|
|
- <FileUpload v-if="taskName == '财务处理'" :disabled="taskName != '财务处理'" :limit="1" :filePathName="'借款/支付凭证'" :isShowTip="false"
|
247
|
|
- :fileType="['doc', 'docx', 'xls', 'xlsx', 'pdf', 'rar', 'zip']" @input="getLendPath">
|
|
251
|
+ <FileUpload v-if="taskName == '财务处理'" :disabled="taskName != '财务处理'" :limit="1" :filePathName="'借款/支付凭证'"
|
|
252
|
+ :isShowTip="false" :fileType="['doc', 'docx', 'xls', 'xlsx', 'pdf', 'rar', 'zip']" @input="getLendPath">
|
248
|
253
|
</FileUpload>
|
249
|
254
|
<div v-if="form.lendDocument && taskName != '财务处理'">
|
250
|
255
|
<!-- <file-item :document="form.lendDocument"></file-item> -->
|
|
@@ -278,6 +283,7 @@
|
278
|
283
|
</el-form>
|
279
|
284
|
<div style="text-align: center;" v-if="taskName != ''">
|
280
|
285
|
<el-button type="warning" @click="saves()">保 存</el-button>
|
|
286
|
+ <el-button type="danger" v-if="taskName != '借款申请'" @click="returnOpen = true">退 回</el-button>
|
281
|
287
|
<el-button type="primary" @click="submitForm">提 交</el-button>
|
282
|
288
|
</div>
|
283
|
289
|
</el-col>
|
|
@@ -297,6 +303,10 @@
|
297
|
303
|
<borrow-print :form="form" :exceed="exceed" :chooseProject="chooseProject" :detailList="detailList"
|
298
|
304
|
@cancel="printOpen = false"></borrow-print>
|
299
|
305
|
</el-dialog>
|
|
306
|
+ <el-dialog title="退回" :visible.sync="returnOpen" width="40%" append-to-body>
|
|
307
|
+ <return-btn :taskForm="taskForm" :comment="commentByRole()" @goBack="$emit('goBack')" @saves=""
|
|
308
|
+ @cancel="returnOpen = false"></return-btn>
|
|
309
|
+ </el-dialog>
|
300
|
310
|
<el-button type="success" @click="printOpen = true">打印</el-button>
|
301
|
311
|
</div>
|
302
|
312
|
</template>
|
|
@@ -316,13 +326,17 @@ import { listBudget } from "@/api/oa/budget/budget";
|
316
|
326
|
import { listBudgetSettle } from "@/api/oa/budget/budgetSettle";
|
317
|
327
|
import FileItem from '../business/fileItem.vue';
|
318
|
328
|
import BorrowPrint from '../components/print/borrowPrint.vue';
|
|
329
|
+import ReturnComment from '@/views/flowable/form/components/flowBtn/returnComment.vue';
|
|
330
|
+import ReturnBtn from '@/views/flowable/form/components/flowBtn/returnBtn.vue';
|
319
|
331
|
|
320
|
332
|
export default {
|
321
|
333
|
components: {
|
322
|
334
|
flow,
|
323
|
335
|
projectChoose,
|
324
|
336
|
FileItem,
|
325
|
|
- BorrowPrint
|
|
337
|
+ BorrowPrint,
|
|
338
|
+ ReturnComment,
|
|
339
|
+ ReturnBtn
|
326
|
340
|
},
|
327
|
341
|
name: "Borrow",
|
328
|
342
|
props: {
|
|
@@ -401,6 +415,8 @@ export default {
|
401
|
415
|
totalBudget: 0,
|
402
|
416
|
hasBorrow: 0,
|
403
|
417
|
printOpen: false,
|
|
418
|
+ showAlter: true,
|
|
419
|
+ returnOpen:false,
|
404
|
420
|
};
|
405
|
421
|
},
|
406
|
422
|
created() {
|
|
@@ -896,6 +912,24 @@ export default {
|
896
|
912
|
result = this.form.managerAmount - (this.totalBudget - this.hasBorrow);
|
897
|
913
|
}
|
898
|
914
|
return result.toFixed(2)
|
|
915
|
+ },
|
|
916
|
+ isReturn(val) {
|
|
917
|
+ this.showAlter = val
|
|
918
|
+ },
|
|
919
|
+ commentByRole() {
|
|
920
|
+ if (this.taskName == '部门审核') {
|
|
921
|
+ return this.form.deptComment
|
|
922
|
+ } else if (this.taskName == '分管审核') {
|
|
923
|
+ return this.form.managerComment
|
|
924
|
+ } else if (this.taskName == '总经理审核') {
|
|
925
|
+ return this.form.zjlComment
|
|
926
|
+ } else if (this.taskName == '董事长批准') {
|
|
927
|
+ return this.form.dszComment
|
|
928
|
+ } else if (this.taskName == '党工团审核') {
|
|
929
|
+ return this.form.unionComment
|
|
930
|
+ } else if (this.taskName == '财务处理') {
|
|
931
|
+ return this.form.cwComment
|
|
932
|
+ }
|
899
|
933
|
}
|
900
|
934
|
}
|
901
|
935
|
};
|