+ 审核人:
+ {{ step.auditBy }}
+
+
审核时间:
{{ step.createTime }}
@@ -159,7 +193,8 @@ export default {
},
pagesType: 1,
userId: '',
- currentNodeId: ''
+ currentNodeId: '',
+ previewList: [],
}
},
created() {
@@ -178,8 +213,8 @@ export default {
// 通过 或 驳回
async onHandleAuditing(type) {
// 组装参数
- const currentAuditing = this.auditingList.filter(e => e.configValues.includes(this.userId)) // 获取当前审核的节点
- const currentIndex = this.auditingList.findIndex(e => e.configValues.includes(this.userId)) // 获取当前的索引
+ const currentAuditing = this.auditingList.filter(e => e.nodeId === this.currentNodeId) // 获取当前审核的节点
+ const currentIndex = this.auditingList.findIndex(e => e.nodeId === this.currentNodeId) // 获取当前的索引
const { recordId, id, typeId, isAccept } = currentAuditing[0]
@@ -196,20 +231,32 @@ export default {
if (currentIndex !== this.auditingList.length - 1) {
this.auditingParams.nextNodeId = this.auditingList[currentIndex + 1].id
}
-
+ this.auditingParams.taskTypeId = 13
+ const loading = this.$loading()
const res = await submitAuditingApi(this.auditingParams)
console.log(res, '提交结果')
if (res.code === 200) {
this.$modal.msgSuccess('审核成功')
+ loading.close()
setTimeout(() => {
- const obj = { path: '/business-examine/reduction-apply' }
- this.$tab.closeOpenPage(obj)
+ // const obj = { path: '/business-examine/reduction-apply' }
+ // this.$tab.closeOpenPage(obj)
+ this.$tab.closePage()
}, 500)
+ } else {
+ loading.close()
+ this.$modal.msgError(res.message);
}
console.log(this.auditingParams, ' this.auditingParams组装好的参数')
},
+
+ handleImg(img) {
+ console.log('🚀 ~ handleImg ~ img:', img)
+ this.previewList = this.fileList.filter(file => file.type === 'image').map(file => file.url)
+ },
+
// 获取数据详情 和 审核记录详情
async getLeaseTaskDetailFun(id, taskId) {
const { data: res } = await getDiscountViewList(id)
@@ -217,12 +264,21 @@ export default {
this.detailsInfo = res
this.detailsList = res.detailList
this.fileList = res.bmFileInfos
-
+ if (this.fileList.length > 0) {
+ this.fileList.forEach(item => {
+ // 如果url 是 .pdf 结尾 添加 type= pdf
+ if (item.url.includes('.pdf')) {
+ item.type = 'pdf'
+ } else {
+ item.type = 'image'
+ }
+ })
+ }
this.detailsList.forEach(e => {
this.totalAmount += e.reduceLeaseMoney * 1
})
- const { rows: result } = await getAuditingDetailsApi({ taskId })
+ const { rows: result } = await getAuditingDetailsApi({ taskId,taskType: 13 })
this.auditingList = result
console.log('result审核记录详情', result)
}
diff --git a/src/views/business-examine/reduction-apply/index.vue b/src/views/business-examine/reduction-apply/index.vue
index 6692328e..1ec90e1a 100644
--- a/src/views/business-examine/reduction-apply/index.vue
+++ b/src/views/business-examine/reduction-apply/index.vue
@@ -69,36 +69,26 @@
{{ (queryParams.pageNum - 1) * queryParams.pageSize + scope.$index + 1 }}
+
-
-
+
+
+ {{ scope.row.leaseMoney.toFixed(2) }}
+
-
-
-
-
+
@@ -108,7 +98,7 @@
审核中
待审核
- 已完成
+ 已审核
已驳回
@@ -127,7 +117,6 @@
审核
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+