借阅修改

main
mo 1 year ago
parent 56ee556662
commit 9212060349

@ -118,7 +118,7 @@ export const DICT_TYPE = {
// 档案借阅介质 // 档案借阅介质
ARCHIVES_MEDIA: 'archives_media', ARCHIVES_MEDIA: 'archives_media',
// 档案借阅方式 // 档案借阅方式
ARCHIVES_APPLY: 'borrow_apply', ARCHIVES_APPLY: 'archives_way',
// 目录号 // 目录号
ARCHIVES_CATALOG_NUM: 'archives_catalog_num', ARCHIVES_CATALOG_NUM: 'archives_catalog_num',
// 全宗号 // 全宗号

@ -81,6 +81,9 @@
<!-- 列表 --> <!-- 列表 -->
<el-table v-loading="loading" :data="list"> <el-table v-loading="loading" :data="list">
<el-table-column label="借阅申请编码" align="center" prop="borrowCode" /> <el-table-column label="借阅申请编码" align="center" prop="borrowCode" />
<el-table-column label="借阅人名称" align="center" prop="userName" />
<el-table-column label="借阅部门名称" align="center" prop="deptName" />
<el-table-column label="借阅事由" align="center" prop="reason" />
<el-table-column label="借阅申请状态" align="center" prop="borrowState"> <el-table-column label="借阅申请状态" align="center" prop="borrowState">
<template v-slot="scope"> <template v-slot="scope">
<dict-tag <dict-tag
@ -89,9 +92,6 @@
/> />
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="借阅事由" align="center" prop="reason" />
<el-table-column label="借阅人名称" align="center" prop="userName" />
<el-table-column label="借阅部门名称" align="center" prop="deptName" />
<el-table-column <el-table-column
label="预计归还日期" label="预计归还日期"
align="center" align="center"
@ -128,12 +128,32 @@
label="操作" label="操作"
align="center" align="center"
class-name="small-padding fixed-width" class-name="small-padding fixed-width"
width="200"
> >
<template v-slot="scope"> <template v-slot="scope">
<el-button
size="mini"
type="text"
icon="el-icon-check"
v-if="scope.row.borrowState == null"
@click="handlePass(scope.row)"
v-hasPermi="['archives:borrowAapply:update']"
>通过</el-button
>
<el-button
size="mini"
type="text"
icon="el-icon-close"
v-if="scope.row.borrowState == null"
@click="handleUnpass(scope.row)"
v-hasPermi="['archives:borrowAapply:update']"
>驳回</el-button
>
<el-button <el-button
size="mini" size="mini"
type="text" type="text"
icon="el-icon-edit" icon="el-icon-edit"
v-if="scope.row.borrowState == null"
@click="handleUpdate(scope.row)" @click="handleUpdate(scope.row)"
v-hasPermi="['archives:borrowAapply:update']" v-hasPermi="['archives:borrowAapply:update']"
>修改</el-button >修改</el-button
@ -203,7 +223,7 @@
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="8"> <!-- <el-col :span="8">
<el-form-item label="借阅申请状态" prop="borrowState"> <el-form-item label="借阅申请状态" prop="borrowState">
<el-select <el-select
v-model="form.borrowState" v-model="form.borrowState"
@ -218,7 +238,7 @@
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col> -->
<el-col :span="8"> <el-col :span="8">
<el-form-item label="借阅事由" prop="reason"> <el-form-item label="借阅事由" prop="reason">
<el-input <el-input
@ -471,6 +491,22 @@ export default {
}); });
}); });
}, },
//
handlePass(row) {
const data = { id: row.id, borrowState: "0" };
updateBorrowApply(data).then((response) => {
this.getList();
this.$modal.msgSuccess("已通过");
});
},
//
handleUnpass(row) {
const data = { id: row.id, borrowState: "1" };
updateBorrowApply(data).then((response) => {
this.getList();
this.$modal.msgError("已驳回");
});
},
/** 删除按钮操作 */ /** 删除按钮操作 */
handleDelete(row) { handleDelete(row) {
const id = row.id; const id = row.id;

Loading…
Cancel
Save