|
|
|
@ -124,7 +124,7 @@
|
|
|
|
|
<span>{{ parseTime(scope.row.createTime) }}</span>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<!-- <el-table-column
|
|
|
|
|
<el-table-column
|
|
|
|
|
label="操作"
|
|
|
|
|
align="center"
|
|
|
|
|
class-name="small-padding fixed-width"
|
|
|
|
@ -133,21 +133,14 @@
|
|
|
|
|
<el-button
|
|
|
|
|
size="mini"
|
|
|
|
|
type="text"
|
|
|
|
|
icon="el-icon-edit"
|
|
|
|
|
icon="el-icon-refresh-left"
|
|
|
|
|
v-if="scope.row.borrowState == 0"
|
|
|
|
|
@click="handleUpdate(scope.row)"
|
|
|
|
|
v-hasPermi="['archives:borrowAapply:update']"
|
|
|
|
|
>修改</el-button
|
|
|
|
|
>
|
|
|
|
|
<el-button
|
|
|
|
|
size="mini"
|
|
|
|
|
type="text"
|
|
|
|
|
icon="el-icon-delete"
|
|
|
|
|
@click="handleDelete(scope.row)"
|
|
|
|
|
v-hasPermi="['archives:borrowAapply:delete']"
|
|
|
|
|
>删除</el-button
|
|
|
|
|
>归还</el-button
|
|
|
|
|
>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column> -->
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</el-table>
|
|
|
|
|
<!-- 分页组件 -->
|
|
|
|
|
<pagination
|
|
|
|
@ -327,6 +320,7 @@ export default {
|
|
|
|
|
company: null,
|
|
|
|
|
remark: null,
|
|
|
|
|
createTime: [],
|
|
|
|
|
historyOrList: "history",
|
|
|
|
|
},
|
|
|
|
|
// 表单参数
|
|
|
|
|
form: {},
|
|
|
|
@ -421,14 +415,12 @@ export default {
|
|
|
|
|
this.open = true;
|
|
|
|
|
this.title = "添加档案借阅申请";
|
|
|
|
|
},
|
|
|
|
|
/** 修改按钮操作 */
|
|
|
|
|
/** 归还按钮操作 */
|
|
|
|
|
handleUpdate(row) {
|
|
|
|
|
this.reset();
|
|
|
|
|
const borrowId = row.borrowId;
|
|
|
|
|
getBorrowApply(borrowId).then((response) => {
|
|
|
|
|
this.form = response.data;
|
|
|
|
|
this.open = true;
|
|
|
|
|
this.title = "修改档案借阅申请";
|
|
|
|
|
const data = { id: row.id, borrowState: "2", recordId: row.recordId };
|
|
|
|
|
updateBorrowApply(data).then((response) => {
|
|
|
|
|
this.getList();
|
|
|
|
|
this.$modal.msgSuccess("归还成功");
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
/** 提交按钮 */
|
|
|
|
|