|
@@ -20,7 +20,7 @@
|
|
|
<template #header="{ titleId, titleClass }">
|
|
|
<div class="hc-card-header flex items-center">
|
|
|
<div :id="titleId" :class="titleClass">任务审核 【已开启电签】</div>
|
|
|
- <div class="ml-6 font-bold text-main" v-if="taskReviewType === '1'">任务名称:{{taskReviewName}}</div>
|
|
|
+ <div class="ml-6 font-bold text-main" v-if="taskReviewType === '1'">任务名称:{{taskReviewInfo.taskName}}</div>
|
|
|
</div>
|
|
|
</template>
|
|
|
<div class="hc-card-body-flex">
|
|
@@ -158,7 +158,6 @@ const rowTaskName = async (row) => {
|
|
|
const approvalFileList = getArrValue(data['approvalFileList'])
|
|
|
taskReviewData.value = approvalFileList
|
|
|
if (approvalFileList.length > 0) {
|
|
|
- taskReviewName.value = approvalFileList[0].fileName
|
|
|
batchPdfUrl.value = approvalFileList[0].fileUrl
|
|
|
}
|
|
|
taskReviewType.value = '1'
|
|
@@ -166,7 +165,6 @@ const rowTaskName = async (row) => {
|
|
|
} else {
|
|
|
taskReviewData.value = []
|
|
|
batchPdfUrl.value = ''
|
|
|
- taskReviewName.value = ''
|
|
|
}
|
|
|
} else {
|
|
|
taskReviewInfo.value = {}
|
|
@@ -193,10 +191,8 @@ const batchApprovalTaskClick = (rows) => {
|
|
|
const rowTaskReviewClick = async ({row}) => {
|
|
|
const type = taskReviewType.value
|
|
|
if (type === '1') {
|
|
|
- taskReviewName.value = row.fileName
|
|
|
batchPdfUrl.value = row.fileUrl
|
|
|
} else if (row['hc_batchPdfUrl']) {
|
|
|
- taskReviewName.value = row.fileName
|
|
|
batchPdfUrl.value = row['hc_batchPdfUrl']
|
|
|
} else {
|
|
|
queryTaskInfo(row)
|
|
@@ -204,7 +200,6 @@ const rowTaskReviewClick = async ({row}) => {
|
|
|
}
|
|
|
|
|
|
//获取PDF数据
|
|
|
-const taskReviewName = ref('')
|
|
|
const queryTaskInfo = async (row) => {
|
|
|
const { error, code, data } = await tasksApi.queryTaskInfo({
|
|
|
formDataId: row['formDataId'] || '',
|
|
@@ -214,13 +209,11 @@ const queryTaskInfo = async (row) => {
|
|
|
if (!error && code === 200) {
|
|
|
const approvalFileList = getArrValue(data['approvalFileList'])
|
|
|
if (approvalFileList.length > 0) {
|
|
|
- taskReviewName.value = approvalFileList[0].fileName
|
|
|
batchPdfUrl.value = approvalFileList[0].fileUrl
|
|
|
row['hc_batchPdfUrl'] = approvalFileList[0].fileUrl
|
|
|
} else {
|
|
|
batchPdfUrl.value = ''
|
|
|
row['hc_batchPdfUrl'] = ''
|
|
|
- taskReviewName.value = ''
|
|
|
window?.$message?.warning('PDF获取异常')
|
|
|
}
|
|
|
} else {
|
|
@@ -302,7 +295,7 @@ const saveCompleteApprovalTask = async () => {
|
|
|
SMSAuthShow.value = false
|
|
|
showTaskReviewModal.value = false
|
|
|
window?.$message?.success('审批成功')
|
|
|
- window?.location?.reload() //刷新页面
|
|
|
+ //window?.location?.reload() //刷新页面
|
|
|
} else {
|
|
|
window?.$message?.warning('审批异常')
|
|
|
}
|
|
@@ -325,7 +318,7 @@ const batchCompleteApprovalTask = async() => {
|
|
|
SMSAuthShow.value = false
|
|
|
showTaskReviewModal.value = false
|
|
|
window?.$message?.success('审批成功')
|
|
|
- window?.location?.reload() //刷新页面
|
|
|
+ //window?.location?.reload() //刷新页面
|
|
|
} else {
|
|
|
window?.$message?.warning('审批出错')
|
|
|
}
|
|
@@ -348,8 +341,6 @@ const setSignRulesClick = () => {
|
|
|
const dateUpdateValue = (val) => {
|
|
|
formReport.value.date = val
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|