应急管理厅专家管理系统
zhouwx
yesterday b6740c65ba8485fc281f0cf38028497b92fbdc94
src/views/safetyReview/projectManage/index.vue
@@ -78,8 +78,9 @@
            }}</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>
@@ -163,7 +164,7 @@
// 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";
@@ -240,6 +241,8 @@
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')
@@ -259,6 +262,8 @@
  };
  // 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('');
@@ -351,6 +356,28 @@
        }
      })
}
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;
@@ -369,7 +396,7 @@
    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
@@ -379,7 +406,7 @@
      console.log(data,'data')
      // 定义表头
      const headers = [
        ["序号", "姓名", "工作单位", "职称", "身份证号", "计费标准", "计费时长", "发票金额", "应缴税费","发放金额", "交通费", "住宿费","开户银行", "卡号"]
        ["序号", "姓名", "工作单位", "职称", "身份证号", "计费标准", "计费时长", "发票金额", "应缴税费","发放金额", "交通费", "住宿费","开户银行", "卡号", "疆内/疆外"]
      ]
      // 固定一行:经办人和负责人
      const footer = [