领用申请
This commit is contained in:
parent
864cb9b4bc
commit
116daf6993
|
|
@ -61,19 +61,20 @@
|
||||||
<span>{{(queryParams.pageNum - 1) * queryParams.pageSize + scope.$index + 1}}</span>
|
<span>{{(queryParams.pageNum - 1) * queryParams.pageSize + scope.$index + 1}}</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="申请人" align="center" prop="name" :show-overflow-tooltip="true" width="120"/>
|
<el-table-column label="申请人" align="center" prop="name" :show-overflow-tooltip="true" width="120"/>
|
||||||
<el-table-column label="联系方式" align="center" prop="phone" :show-overflow-tooltip="true" width="180"/>
|
<el-table-column label="岗位" align="center" prop="postName" :show-overflow-tooltip="true" width="180"/>
|
||||||
<el-table-column label="身份证号" align="center" prop="idNumber" :show-overflow-tooltip="true" width="180"/>
|
<el-table-column label="联系方式" align="center" prop="phone" :show-overflow-tooltip="true" width="150"/>
|
||||||
|
<!-- <el-table-column label="身份证号" align="center" prop="idNumber" :show-overflow-tooltip="true" width="180"/> -->
|
||||||
<el-table-column label="证件类型" align="center" prop="certificateTypeName" :show-overflow-tooltip="true"/>
|
<el-table-column label="证件类型" align="center" prop="certificateTypeName" :show-overflow-tooltip="true"/>
|
||||||
<el-table-column label="证件编号" align="center" prop="certificateNo" :show-overflow-tooltip="true" width="180"></el-table-column>
|
<!-- <el-table-column label="证件编号" align="center" prop="certificateNo" :show-overflow-tooltip="true" width="180"></el-table-column> -->
|
||||||
<el-table-column label="领用原因" align="center" prop="requestReason" :show-overflow-tooltip="true">
|
<el-table-column label="领用原因" align="center" prop="applyReason" :show-overflow-tooltip="true">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<dict-tag :options="dict.type.issue_type" :value="scope.row.requestReason"/>
|
<dict-tag :options="dict.type.issue_type" :value="scope.row.applyReason"/>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="详细说明" align="center" width="120" prop="remark" :show-overflow-tooltip="true"/>
|
<el-table-column label="详细说明" align="center" width="120" prop="applyDetail" :show-overflow-tooltip="true"/>
|
||||||
<el-table-column label="计划出国时间" align="center" prop="" :show-overflow-tooltip="true"/>
|
<el-table-column label="计划出国时间" align="center" prop="startTime" :show-overflow-tooltip="true"/>
|
||||||
<el-table-column label="计划返回时间" align="center" prop="" :show-overflow-tooltip="true"/>
|
<el-table-column label="计划返回时间" align="center" prop="endTime" :show-overflow-tooltip="true"/>
|
||||||
<el-table-column label="附件" align="center" prop="" :show-overflow-tooltip="true"/>
|
<el-table-column label="附件" align="center" prop="" :show-overflow-tooltip="true"/>
|
||||||
<el-table-column label="申请状态" align="center" prop="" :show-overflow-tooltip="true">
|
<el-table-column label="申请状态" align="center" prop="" :show-overflow-tooltip="true">
|
||||||
<!-- <template slot-scope="scope">
|
<!-- <template slot-scope="scope">
|
||||||
|
|
|
||||||
|
|
@ -62,7 +62,7 @@
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="申请人" align="center" prop="name" :show-overflow-tooltip="true" width="120"/>
|
<el-table-column label="申请人" align="center" prop="name" :show-overflow-tooltip="true" width="120"/>
|
||||||
<el-table-column label="岗位" align="center" prop="idNumber" :show-overflow-tooltip="true" width="180"/>
|
<el-table-column label="岗位" align="center" prop="postName" :show-overflow-tooltip="true" width="180"/>
|
||||||
<el-table-column label="联系方式" align="center" prop="phone" :show-overflow-tooltip="true" width="150"/>
|
<el-table-column label="联系方式" align="center" prop="phone" :show-overflow-tooltip="true" width="150"/>
|
||||||
<!-- <el-table-column label="身份证号" align="center" prop="idNumber" :show-overflow-tooltip="true" width="180"/> -->
|
<!-- <el-table-column label="身份证号" align="center" prop="idNumber" :show-overflow-tooltip="true" width="180"/> -->
|
||||||
<el-table-column label="证件类型" align="center" prop="certificateTypeName" :show-overflow-tooltip="true"/>
|
<el-table-column label="证件类型" align="center" prop="certificateTypeName" :show-overflow-tooltip="true"/>
|
||||||
|
|
@ -73,8 +73,8 @@
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="详细说明" align="center" width="120" prop="applyDetail" :show-overflow-tooltip="true"/>
|
<el-table-column label="详细说明" align="center" width="120" prop="applyDetail" :show-overflow-tooltip="true"/>
|
||||||
<el-table-column label="计划出国时间" align="center" prop="" :show-overflow-tooltip="true"/>
|
<el-table-column label="计划出国时间" align="center" prop="startTime" :show-overflow-tooltip="true"/>
|
||||||
<el-table-column label="计划返回时间" align="center" prop="" :show-overflow-tooltip="true"/>
|
<el-table-column label="计划返回时间" align="center" prop="endTime" :show-overflow-tooltip="true"/>
|
||||||
<el-table-column label="附件" align="center" prop="" :show-overflow-tooltip="true"/>
|
<el-table-column label="附件" align="center" prop="" :show-overflow-tooltip="true"/>
|
||||||
<el-table-column label="申请状态" align="center" prop="" :show-overflow-tooltip="true">
|
<el-table-column label="申请状态" align="center" prop="" :show-overflow-tooltip="true">
|
||||||
<!-- <template slot-scope="scope">
|
<!-- <template slot-scope="scope">
|
||||||
|
|
@ -210,7 +210,9 @@
|
||||||
:action="upload.url"
|
:action="upload.url"
|
||||||
:disabled="upload.isUploading"
|
:disabled="upload.isUploading"
|
||||||
:on-progress="handleFileUploadProgress"
|
:on-progress="handleFileUploadProgress"
|
||||||
|
:file-list="fileList"
|
||||||
:on-success="handleFileSuccess"
|
:on-success="handleFileSuccess"
|
||||||
|
:on-change="handleChange"
|
||||||
:auto-upload="true"
|
:auto-upload="true"
|
||||||
drag
|
drag
|
||||||
>
|
>
|
||||||
|
|
@ -348,6 +350,9 @@
|
||||||
},
|
},
|
||||||
// 表单校验
|
// 表单校验
|
||||||
baseFormRules: {
|
baseFormRules: {
|
||||||
|
name: [
|
||||||
|
{ required: true, message: "申请人不能为空", trigger: "change" }
|
||||||
|
],
|
||||||
userId: [
|
userId: [
|
||||||
{ required: true, message: "申请人不能为空", trigger: "change" }
|
{ required: true, message: "申请人不能为空", trigger: "change" }
|
||||||
],
|
],
|
||||||
|
|
@ -380,7 +385,9 @@
|
||||||
headers: { Authorization: 'Bearer ' + getToken() },
|
headers: { Authorization: 'Bearer ' + getToken() },
|
||||||
// 上传的地址
|
// 上传的地址
|
||||||
url: process.env.VUE_APP_BASE_API + '/file/upload?type=face',
|
url: process.env.VUE_APP_BASE_API + '/file/upload?type=face',
|
||||||
}
|
},
|
||||||
|
fileList:[],
|
||||||
|
fileUrls:[]
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
mounted(){
|
mounted(){
|
||||||
|
|
@ -467,23 +474,23 @@
|
||||||
this.baseForm.applyState = type;
|
this.baseForm.applyState = type;
|
||||||
|
|
||||||
//fileUrls 附件 数组
|
//fileUrls 附件 数组
|
||||||
|
console.log(this.fileUrls)
|
||||||
console.log("this.baseForm",this.baseForm);
|
console.log("this.baseForm",this.baseForm);
|
||||||
this.$refs["baseForm"].validate(valid => {
|
this.$refs["baseForm"].validate(valid => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
// if (this.baseForm.createTime != undefined) {
|
if (this.baseForm.createTime != undefined) {
|
||||||
// editCertificateApplyApi(this.baseForm).then(response => {
|
// editCertificateApplyApi(this.baseForm).then(response => {
|
||||||
// this.$modal.msgSuccess("修改成功");
|
// this.$modal.msgSuccess("修改成功");
|
||||||
// this.open = false;
|
// this.open = false;
|
||||||
// this.getList();
|
// this.getList();
|
||||||
// });
|
// });
|
||||||
// } else {
|
} else {
|
||||||
// addCertificateApplyApi(this.baseForm).then(response => {
|
// addCertificateApplyApi(this.baseForm).then(response => {
|
||||||
// this.$modal.msgSuccess("新增成功");
|
// this.$modal.msgSuccess("新增成功");
|
||||||
// this.open = false;
|
// this.open = false;
|
||||||
// this.getList();
|
// this.getList();
|
||||||
// });
|
// });
|
||||||
// }
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
@ -544,29 +551,24 @@
|
||||||
});
|
});
|
||||||
}).catch(() => {});
|
}).catch(() => {});
|
||||||
},
|
},
|
||||||
|
|
||||||
/** 导出按钮操作 */
|
|
||||||
handleExport() {
|
|
||||||
this.download('certificate/certificate_manage/certificateInfo/export', {
|
|
||||||
...this.queryParams
|
|
||||||
}, `证件信息_${new Date().getTime()}.xlsx`);
|
|
||||||
},
|
|
||||||
// 文件上传中处理
|
// 文件上传中处理
|
||||||
handleFileUploadProgress(event, file, fileList) {
|
handleFileUploadProgress(event, file, fileList) {
|
||||||
this.upload.isUploading = true
|
this.upload.isUploading = true
|
||||||
},
|
},
|
||||||
// 文件上传成功处理
|
// 文件上传成功处理
|
||||||
handleFileSuccess(response, file, fileList) {
|
handleFileSuccess(response, file, fileList) {
|
||||||
console.log(response)
|
this.upload.isUploading = false;
|
||||||
this.upload.isUploading = false
|
|
||||||
this.$refs.upload.clearFiles()
|
|
||||||
if(response.code==200){
|
if(response.code==200){
|
||||||
this.$modal.msgSuccess(response.msg);
|
this.$modal.msgSuccess(response.msg);
|
||||||
this.getList();
|
|
||||||
}else{
|
}else{
|
||||||
this.$modal.msgError(response.msg);
|
this.$modal.msgError(response.msg);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
handleChange(file, fileList) {
|
||||||
|
console.log(fileList)
|
||||||
|
// this.fileUrls = fileList.map(item => item.response.data.url)
|
||||||
|
|
||||||
|
},
|
||||||
/** 批量删除 */
|
/** 批量删除 */
|
||||||
handleBatchDel(){
|
handleBatchDel(){
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue