借阅修改

main
mo 1 year ago
parent 56ee556662
commit 9212060349

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

@ -81,6 +81,9 @@
<!-- 列表 -->
<el-table v-loading="loading" :data="list">
<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">
<template v-slot="scope">
<dict-tag
@ -89,9 +92,6 @@
/>
</template>
</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
label="预计归还日期"
align="center"
@ -128,12 +128,32 @@
label="操作"
align="center"
class-name="small-padding fixed-width"
width="200"
>
<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
size="mini"
type="text"
icon="el-icon-edit"
v-if="scope.row.borrowState == null"
@click="handleUpdate(scope.row)"
v-hasPermi="['archives:borrowAapply:update']"
>修改</el-button
@ -203,7 +223,7 @@
</el-row>
<el-row>
<el-col :span="8">
<!-- <el-col :span="8">
<el-form-item label="借阅申请状态" prop="borrowState">
<el-select
v-model="form.borrowState"
@ -218,7 +238,7 @@
</el-option>
</el-select>
</el-form-item>
</el-col>
</el-col> -->
<el-col :span="8">
<el-form-item label="借阅事由" prop="reason">
<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) {
const id = row.id;

Loading…
Cancel
Save