From a4bcd1eb9305e2c1b77c7847c2f4a979c0e95e93 Mon Sep 17 00:00:00 2001
From: batman <978517621@qq.com>
Date: 星期一, 13 三月 2023 19:45:50 +0800
Subject: [PATCH] 新修改添加页面

---
 src/views/specialWorkSystem/workTicket/wdsq/index.vue |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/src/views/specialWorkSystem/workTicket/wdsq/index.vue b/src/views/specialWorkSystem/workTicket/wdsq/index.vue
index 7d480b5..340b902 100644
--- a/src/views/specialWorkSystem/workTicket/wdsq/index.vue
+++ b/src/views/specialWorkSystem/workTicket/wdsq/index.vue
@@ -38,6 +38,11 @@
                                 <el-table-column property="operators" label="作业人" />
                                 <el-table-column property="workTypeDesc" label="作业类型" />
                                 <el-table-column property="workLevelDesc" label="作业等级" />
+                                <el-table-column property="materialStatus" label="物资状态" align="center" width="180">
+                                  <template #default="scope">
+                                    <span>{{ scope.row.materialStatus==0?'未关联物资':(scope.row.materialStatus==1?'必选物资配备不足':(scope.row.materialStatus==2?'必选物资配备齐全':(scope.row.materialStatus==3?'物资配置专业':(scope.row.materialStatus==4?'物资配置高端':'-')))) }}</span>
+                                  </template>
+                                </el-table-column>
                                 <el-table-column property="applyTime" label="申请时间" width="180" />
                                 <el-table-column label="申请状态" align="center" width="180">
                                     <template #default="scope">
@@ -321,7 +326,7 @@
         // 填写表单
         const toApply = () => {
             router.push({
-                path: 'apply'
+                path: 'zysq'
             });
         };
 
@@ -468,7 +473,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'})

--
Gitblit v1.9.2