|
@@ -8,7 +8,9 @@
|
|
</template>
|
|
</template>
|
|
<hc-table :column="tableColumn" :datas="tableData" :loading="tableLoading" is-new :index-style="{ width: 60 }">
|
|
<hc-table :column="tableColumn" :datas="tableData" :loading="tableLoading" is-new :index-style="{ width: 60 }">
|
|
<template #action="{ row }">
|
|
<template #action="{ row }">
|
|
|
|
+ <el-link type="primary" :disabled="!row.rawUrl" @click="rowViewRawPdf(row)">查看电签报表</el-link>
|
|
<el-link type="primary" @click="viewPdf(row)">查看报表</el-link>
|
|
<el-link type="primary" @click="viewPdf(row)">查看报表</el-link>
|
|
|
|
+ <el-link type="primary" :disabled="row.approveStatus === 0" @click="eVisaRowClick(row)">查看电签流程</el-link>
|
|
<el-link type="success" @click="editRow(row)">修改</el-link>
|
|
<el-link type="success" @click="editRow(row)">修改</el-link>
|
|
<el-link type="danger" @click="delCilck(row)">删除</el-link>
|
|
<el-link type="danger" @click="delCilck(row)">删除</el-link>
|
|
<el-link v-loading="row?.recalculateLoading" @click="recalculate(row)">重新计算</el-link>
|
|
<el-link v-loading="row?.recalculateLoading" @click="recalculate(row)">重新计算</el-link>
|
|
@@ -42,19 +44,22 @@
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-form>
|
|
</el-form>
|
|
</hc-new-dialog>
|
|
</hc-new-dialog>
|
|
|
|
+ <!-- 任务流程 -->
|
|
|
|
+ <HcTaskModal v-model="isTaskModal" :data="taskData" />
|
|
</hc-new-card>
|
|
</hc-new-card>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script setup>
|
|
<script setup>
|
|
-import { onActivated, onMounted, ref } from 'vue'
|
|
|
|
|
|
+import { onActivated, ref } from 'vue'
|
|
import bookApi from '~api/debit-pay/material/book.js'
|
|
import bookApi from '~api/debit-pay/material/book.js'
|
|
import periodApi from '~api/debit-pay/material/periods.js'
|
|
import periodApi from '~api/debit-pay/material/periods.js'
|
|
import { useAppStore } from '~src/store'
|
|
import { useAppStore } from '~src/store'
|
|
-import { formValidate, getArrValue, getObjValue } from 'js-fast-way'
|
|
|
|
|
|
+import { deepClone, formValidate, getArrValue, isNullES } from 'js-fast-way'
|
|
import { toPdfPage } from '~uti/btn-auth'
|
|
import { toPdfPage } from '~uti/btn-auth'
|
|
const useAppState = useAppStore()
|
|
const useAppState = useAppStore()
|
|
const contractId = ref(useAppState.getContractId)
|
|
const contractId = ref(useAppState.getContractId)
|
|
const projectId = ref(useAppState.getProjectId)
|
|
const projectId = ref(useAppState.getProjectId)
|
|
|
|
+import HcTaskModal from '~src/components/task-modal/task-modal.vue'
|
|
import { HcDelMsg } from 'hc-vue3-ui'
|
|
import { HcDelMsg } from 'hc-vue3-ui'
|
|
defineOptions({
|
|
defineOptions({
|
|
name: 'DebitPayMaterialBook',
|
|
name: 'DebitPayMaterialBook',
|
|
@@ -125,7 +130,7 @@ const tableColumn = ref([
|
|
{ key: 'statementName', name: '报表名称' },
|
|
{ key: 'statementName', name: '报表名称' },
|
|
{ key: 'printDate', name: '打印日期' },
|
|
{ key: 'printDate', name: '打印日期' },
|
|
{ key: 'calculateDate', name: '重新计算时间' },
|
|
{ key: 'calculateDate', name: '重新计算时间' },
|
|
- { key: 'action', name: '操作', width: 230 },
|
|
|
|
|
|
+ { key: 'action', name: '操作', width: 400, align: 'center' },
|
|
])
|
|
])
|
|
const tableData = ref([])
|
|
const tableData = ref([])
|
|
const getTableData = async () => {
|
|
const getTableData = async () => {
|
|
@@ -246,6 +251,22 @@ const formModalClose = () => {
|
|
formModalShow.value = false
|
|
formModalShow.value = false
|
|
getTableData()
|
|
getTableData()
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+const rowViewRawPdf = (row)=>{
|
|
|
|
+ toPdfPage(row?.rawUrl)
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+//查看电签流程
|
|
|
|
+const isTaskModal = ref(false)
|
|
|
|
+const taskData = ref({})
|
|
|
|
+const eVisaRowClick = (row) => {
|
|
|
|
+ if (isNullES(row.taskId)) {
|
|
|
|
+ window.$message.warning('暂无电签数据')
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ taskData.value = deepClone(row)
|
|
|
|
+ isTaskModal.value = true
|
|
|
|
+}
|
|
</script>
|
|
</script>
|
|
|
|
|
|
<style scoped lang="scss">
|
|
<style scoped lang="scss">
|