Admin
2022-11-16 f59373dccb4afb37e63f4fe655061d067244860c
src/views/specialWorkSystem/workTicket/wdsqjl/index.vue
@@ -342,7 +342,7 @@
        // 填写表单
        const toApply = () => {
            router.push({
                path: 'apply'
                path: 'zysq'
            });
        };
@@ -418,7 +418,7 @@
        // 关键词查询记录
        const searchRecord = async () => {
            if (state.searchWord == null && state.searchDep == null && state.searchDate == '') {
            if (state.searchWord == null && state.searchDep == null && state.searchDate == []) {
                ElMessage({
                    type: 'warning',
                    message: '请输入查询关键词'
@@ -431,7 +431,7 @@
        const clearSearch = async () => {
            state.searchWord = null;
            state.searchDep = null;
            state.searchDate = ''
            state.searchDate = []
            getListByPage();
        };
@@ -442,7 +442,7 @@
        // 查询进度方法
        const getStatus = async (data: any) => {
            let res = await workApplyApi().getStatus(data);
            let res = await workApplyApi().getAllStatus(data);
            if (res.data.code === '200') {
                state.approveInfo = JSON.parse(JSON.stringify(res.data.data));
                state.approveInfo.operators = Array.from(state.approveInfo.operators, ({ operatorUname }) => operatorUname);
@@ -470,7 +470,7 @@
        // 导出方法
        const downLoadRecord = async (data: any) => {
            // let res = await workApplyApi().postPrinting(data);
            axios.post(import.meta.env.VITE_API_URL + `/work/apply/printing`,data,{headers:{'Content-Type': 'application/json','Authorization': `${Cookies.get('token')}`,'uid':`${Cookies.get('uid')}`},responseType: 'blob'}).then(res=>{
            axios.post(import.meta.env.VITE_API_URL + `/work/apply/printingPdf`,data,{headers:{'Content-Type': 'application/json','Authorization': `${Cookies.get('token')}`,'uid':`${Cookies.get('uid')}`},responseType: 'blob'}).then(res=>{
                if (res) {
                    const link = document.createElement('a')
                    let blob = new Blob([res.data],{type: 'application/pdf'})