领用申请

This commit is contained in:
zzyuan 2025-11-26 17:26:40 +08:00
parent de0248a046
commit 3a8ee80767
3 changed files with 61 additions and 6 deletions

View File

@ -69,7 +69,7 @@
<el-table-column label="计划返回时间" align="center" prop="endTime" :show-overflow-tooltip="true"/>
<el-table-column label="附件" align="center" prop="" :show-overflow-tooltip="true">
<template slot-scope="scope">
<span>查看</span>
<span @click="checkFile(scope.row)" style="cursor: pointer;color: #46a6ff;">查看</span>
</template>
</el-table-column>
<el-table-column label="申请状态" align="center" prop="applyState" :show-overflow-tooltip="true">
@ -216,6 +216,17 @@
<el-button type="danger" @click="submitForm(2)" v-if="!isView"> </el-button>
<el-button @click="cancel"> </el-button>
</div>
</el-dialog>
<el-dialog title="查看附件" :visible.sync="openFile" width="400px" append-to-body>
<div style="width: 100%;padding: 10px;color: #46a6ff;">
<div v-for="(item,index) in fileList" :key="index" style="margin: 10px;cursor: pointer;" @click="handlePreviewDownloadFile(item)">
{{ item.name }}
</div>
</div>
<div slot="footer" class="dialog-footer">
<el-button @click="openFile=false"> </el-button>
</div>
</el-dialog>
</div>
</template>
@ -328,7 +339,8 @@
},
fileList:[],
fileUrls:[],
fileNames:[]
fileNames:[],
openFile:false
};
},
mounted(){
@ -521,6 +533,21 @@
document.body.removeChild(link); // <a>
}
},
checkFile(row){
this.fileList=[]
this.fileUrls=[]
this.fileNames = []
if(row.fileUrl&&row.fileUrl!=''){
let arr = row.fileUrl.split(",");
let arr2 = row.fileName.split(",");
arr.forEach((item,index)=>{
this.fileList.push({url:item,name:arr2[index]})
this.fileUrls.push(item)
this.fileNames.push(arr2[index])
})
}
this.openFile = true
},
/** 批量删除 */
handleBatchDel(){

View File

@ -77,7 +77,7 @@
<el-table-column label="计划返回时间" align="center" prop="endTime" :show-overflow-tooltip="true"/>
<el-table-column label="附件" align="center" prop="" :show-overflow-tooltip="true">
<template slot-scope="scope">
<span>查看</span>
<span @click="checkFile(scope.row)" style="cursor: pointer;color: #46a6ff;">查看</span>
</template>
</el-table-column>
<el-table-column label="申请状态" align="center" prop="applyState" :show-overflow-tooltip="true">
@ -285,6 +285,17 @@
<el-button @click="cancel2"> </el-button>
</div>
</el-dialog>
<el-dialog title="查看附件" :visible.sync="openFile" width="400px" append-to-body>
<div style="width: 100%;padding: 10px;color: #46a6ff;">
<div v-for="(item,index) in fileList" :key="index" style="margin: 10px;cursor: pointer;" @click="handlePreviewDownloadFile(item)">
{{ item.name }}
</div>
</div>
<div slot="footer" class="dialog-footer">
<el-button @click="openFile=false"> </el-button>
</div>
</el-dialog>
</div>
</template>
@ -401,7 +412,8 @@
},
fileList:[],
fileUrls:[],
fileNames:[]
fileNames:[],
openFile:false
};
},
mounted(){
@ -438,6 +450,7 @@
}
getCertificateApplyListPageApi(param).then(response => {
this.tableListData = response.rows;
this.total = Number(response.total);
this.loading = false;
});
@ -660,6 +673,21 @@
document.body.removeChild(link); // <a>
}
},
checkFile(row){
this.fileList=[]
this.fileUrls=[]
this.fileNames = []
if(row.fileUrl&&row.fileUrl!=''){
let arr = row.fileUrl.split(",");
let arr2 = row.fileName.split(",");
arr.forEach((item,index)=>{
this.fileList.push({url:item,name:arr2[index]})
this.fileUrls.push(item)
this.fileNames.push(arr2[index])
})
}
this.openFile = true
},
/** 批量删除 */
handleBatchDel(){

View File

@ -66,8 +66,8 @@
<el-table-column label="身份证号" align="center" prop="idNumber" :show-overflow-tooltip="true"/> -->
<el-table-column label="开始时间" align="center" prop="startTime" :show-overflow-tooltip="true"/>
<el-table-column label="结束时间" align="center" prop="endTime" :show-overflow-tooltip="true"/>
<el-table-column label="任务标题" align="center" prop="verifyTiele" :show-overflow-tooltip="true"/>
<el-table-column label="任务状态" align="center" prop="state" :show-overflow-tooltip="true"/>
<el-table-column label="任务标题" align="center" prop="verifyTitle" :show-overflow-tooltip="true"/>
<el-table-column label="任务状态" align="center" prop="verifyStateName" :show-overflow-tooltip="true"/>
<el-table-column label="任务类型" align="center" prop="type" :show-overflow-tooltip="true">
<template slot-scope="scope">
<span v-if="scope.row.type==1">有无证件核验</span>