| | |
| | | }}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column fixed="right" label="操作" align="center" class-name="small-padding fixed-width" width="180"> |
| | | <el-table-column fixed="right" label="操作" align="center" class-name="small-padding fixed-width" width="200"> |
| | | <template #default="scope"> |
| | | <el-button link type="danger" v-if="isAdmin && scope.row.state === 4 && scope.row.evaluationState" @click="toBack(scope.row)">退回</el-button> |
| | | <el-button link type="primary" @click="toProcess('view',scope.row)">查看</el-button> |
| | | <el-button link type="primary" v-if="scope.row.step !== 4" @click="toProcess('edit',scope.row)">编辑 |
| | | </el-button> |
| | |
| | | // import {delProject, getProjectList, getProjectStatistics} from "@/api/projectManage/project"; |
| | | import {ElMessage, ElMessageBox} from "element-plus"; |
| | | import Cookies from "js-cookie" |
| | | import {delProject, exportData, exportExpertData, getProjectList, getProjectNum} from "@/api/projectManage"; |
| | | import {backInfo, delProject, exportData, exportExpertData, getProjectList, getProjectNum} from "@/api/projectManage"; |
| | | // import * as XLSX from 'xlsx'; |
| | | import XLSX from 'xlsx-js-style'; |
| | | import {listDept} from "@/api/system/dept"; |
| | |
| | | const dataList = ref([]); |
| | | const deptList = ref([]) |
| | | const total = ref(0); |
| | | const isAdmin = ref(false); |
| | | const userInfo = ref() |
| | | const isAgency = ref(false); |
| | | onMounted(() => { |
| | | Cookies.remove('projectId') |
| | |
| | | }; |
| | | // const userInfo = JSON.parse(Cookies.get('userInfo')) |
| | | // isAgency.value = userInfo.identity === 1; |
| | | userInfo.value = JSON.parse(Cookies.get('userInfo')) |
| | | isAdmin.value = userInfo.value.admin |
| | | |
| | | }); |
| | | const chooseType = ref(''); |
| | |
| | | } |
| | | }) |
| | | } |
| | | |
| | | const toBack = (val) => { |
| | | ElMessageBox.confirm( |
| | | '确定退回此条数据?', |
| | | '提示', |
| | | { |
| | | confirmButtonText: '确定', |
| | | cancelButtonText: '取消', |
| | | type: 'warning', |
| | | }) |
| | | .then(async () => { |
| | | const res = await backInfo({id:val.id}) |
| | | if (res.code == 200) { |
| | | ElMessage.success('数据退回成功') |
| | | await getList() |
| | | await getStatistics() |
| | | |
| | | } else { |
| | | ElMessage.warning(res.msg) |
| | | } |
| | | }) |
| | | } |
| | | const confirmClick = () => { |
| | | reset() |
| | | showDrawer.value = false; |
| | |
| | | const title = [[`自治区应急管理厅外聘专家劳务费发放表(项目编码${row.projectCode})`]] |
| | | // 固定一行:填报处室和单位 |
| | | const fixedHeader = [ |
| | | ["填报处室:" + row.deptName, "", "", "", "", "单位:元", "", "", "","", "制表日期:"+row.updateTime,"", "",""] |
| | | ["填报处室:" + row.deptName, "", "", "", "", "单位:元", "", "", "","", "制表日期:"+row.updateTime,"", "","",""] |
| | | ] |
| | | if(res.data && res.data[0] && Array.isArray(res.data[0].projectExpertExportResps) && res.data[0].projectExpertExportResps.length>0){ |
| | | let mainData = res.data[0].projectExpertExportResps |
| | |
| | | console.log(data,'data') |
| | | // 定义表头 |
| | | const headers = [ |
| | | ["序号", "姓名", "工作单位", "职称", "身份证号", "计费标准", "计费时长", "发票金额", "应缴税费","发放金额", "交通费", "住宿费","开户银行", "卡号"] |
| | | ["序号", "姓名", "工作单位", "职称", "身份证号", "计费标准", "计费时长", "发票金额", "应缴税费","发放金额", "交通费", "住宿费","开户银行", "卡号", "疆内/疆外"] |
| | | ] |
| | | // 固定一行:经办人和负责人 |
| | | const footer = [ |