新增档案选择

main
mo 1 year ago
parent 70f9b115f3
commit 956f7aef6c

@ -0,0 +1,162 @@
<template>
<el-dialog
title="档案选择"
v-if="showFlag"
:visible.sync="showFlag"
:modal="false"
width="80%"
center
>
<el-row>
<right-toolbar
:showSearch.sync="showSearch"
@queryTable="getList"
></right-toolbar>
</el-row>
<el-table
v-loading="loading"
:data="fileList"
@current-change="handleCurrent"
@row-dblclick="handleRowDbClick"
>
<el-table-column width="50" align="center">
<template v-slot="scope">
<el-radio
v-model="selectedArchivesId"
:label="scope.row.id"
@change="handleRowChange(scope.row)"
>{{ "" }}</el-radio
>
</template>
</el-table-column>
<el-table-column label="档案类型" align="center" prop="type">
<template v-slot="scope">
<dict-tag
:type="DICT_TYPE.ARCHIVES_FILE_TYPE"
:value="scope.row.type"
/>
</template>
</el-table-column>
<el-table-column label="档案位置" align="center" prop="position" />
<el-table-column label="保存期限" align="center" prop="timeLimit">
</el-table-column>
<el-table-column label="鉴定人" align="center" prop="userName" />
<el-table-column label="业务实体" align="center" prop="company" />
<el-table-column label="鉴定日期" align="center" prop="date" width="180">
<template v-slot="scope">
<span>{{ parseTime(scope.row.date) }}</span>
</template>
</el-table-column>
<el-table-column label="鉴定结果" align="center" prop="result">
<template v-slot="scope">
<span>{{ scope.row.result == 0 ? "销毁" : "延长期限" }}</span>
</template>
</el-table-column>
<el-table-column label="备注" align="center" prop="remark" />
</el-table>
<pagination
v-show="total > 0"
:total="total"
:page.sync="queryParams.pageNum"
:limit.sync="queryParams.pageSize"
@pagination="getList"
/>
<div slot="footer" class="dialog-footer">
<el-button type="primary" @click="confirmSelect"> </el-button>
<el-button @click="showFlag = false"> </el-button>
</div>
</el-dialog>
</template>
<script>
import { getAuthenticatePage } from "@/api/fileAuth/authenticate";
export default {
name: "FileSelect",
data() {
return {
showFlag: false,
selectedArchivesId: undefined,
selectedRow: undefined,
//
loading: true,
//
single: true,
//
multiple: true,
//
showSearch: true,
//
total: 0,
//
fileList: [],
//
title: "",
//
open: false,
//
queryParams: {
pageNo: 1,
pageSize: 10,
result: "1",
},
};
},
created() {
this.getList();
},
methods: {
/** 查询列表 */
getList() {
this.loading = true;
getAuthenticatePage(this.queryParams).then((response) => {
this.fileList = response.data.list;
this.total = response.data.total;
this.loading = false;
});
},
/** 搜索按钮操作 */
handleQuery() {
this.queryParams.pageNum = 1;
this.getList();
},
/** 重置按钮操作 */
resetQuery() {
this.resetForm("queryForm");
this.handleQuery();
},
handleCurrent(row) {
if (row) {
this.selectedRow = row;
}
},
//
handleRowDbClick(row) {
if (row) {
this.selectedRow = row;
this.$emit("onSelected", this.selectedRow);
this.showFlag = false;
}
},
//
handleRowChange(row) {
if (row) {
this.selectedRow = row;
}
},
//
confirmSelect() {
if (this.selectedArchivesId == null || this.selectedArchivesId == 0) {
this.$notify({
title: "提示",
type: "warning",
message: "请至少选择一条数据!",
});
return;
}
this.$emit("onSelected", this.selectedRow);
this.showFlag = false;
},
},
};
</script>

@ -185,6 +185,47 @@
append-to-body
>
<el-form ref="form" :model="form" :rules="rules" label-width="110px">
<el-row>
<el-col :span="8">
<el-form-item label="档案" prop="">
<el-input v-model="form.file" placeholder="请选择要移交档案">
<el-button
slot="append"
@click="handleFileSelect"
icon="el-icon-search"
style="
border-color: #46a6ff;
background-color: #46a6ff;
color: white;
"
></el-button>
<FileSelect
ref="FileSelect"
@onSelected="onFileSelected"
></FileSelect>
</el-input>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="业务实体" prop="company">
<!-- <el-select
v-model="company"
placeholder="请选择业务实体"
value-key="id"
@change="handleSelectOrganization"
>
<el-option
v-for="item in organizationList"
:key="item.id"
:value="item"
:label="item.organizationName"
>
</el-option>
</el-select> -->
<el-input v-model="form.company" readonly />
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="8">
<el-form-item label="移交单号" prop="applyNo">
@ -253,45 +294,19 @@
</el-select>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="业务实体" prop="company">
<!-- <el-select v-model="form.company" placeholder="请选择业务实体">
<el-option
v-for="item in organizationList"
:key="item.id"
:value="item.id"
:label="item.organizationName"
>
</el-option>
</el-select> -->
<el-select
v-model="company"
placeholder="请选择业务实体"
value-key="id"
@change="handleSelectOrganization"
>
<el-option
v-for="item in organizationList"
:key="item.id"
:value="item"
:label="item.organizationName"
>
</el-option>
</el-select>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="8">
<el-form-item label="旧档案位置">
<el-cascader
<el-form-item label="旧档案位置" prop="position">
<!-- <el-cascader
v-model="oldSiteArray"
:options="siteOptions"
:props="propName"
placeholder="请选择档案位置"
clearable
@change="handleOldSiteChanged"
/>
/> -->
<el-input v-model="form.position" readonly />
</el-form-item>
</el-col>
<el-col :span="8">
@ -313,18 +328,12 @@
</el-col>
<el-col :span="8">
<el-form-item label="流程实例的编号" prop="processInstanceId">
<el-input
v-model="form.processInstanceId"
readonly
/>
<el-input v-model="form.processInstanceId" readonly />
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="申请状态" prop="status">
<el-input
v-model="form.status"
readonly
/>
<el-input v-model="form.status" readonly />
</el-form-item>
</el-col>
</el-row>
@ -357,10 +366,11 @@ import { getOrganizationPage } from "@/api/setting/organization";
import { listUser } from "@/api/system/user";
import { createCodeRule } from "@/api/archives/record";
import { getSiteTree } from "@/api/setting/organization";
import FileSelect from "@/components/FileSelect/single.vue";
export default {
name: "TurnOver",
components: {},
components: { FileSelect },
data() {
return {
propName: {
@ -642,6 +652,13 @@ export default {
})
.catch(() => {});
},
//
handleFileSelect() {
this.$refs.FileSelect.showFlag = true;
},
onFileSelected(obj) {
console.log(obj);
},
},
};
</script>

@ -47,7 +47,14 @@
<!-- 列表 -->
<el-table v-loading="loading" :data="list">
<el-table-column label="档案类型" align="center" prop="type" />
<el-table-column label="档案类型" align="center" prop="type">
<template v-slot="scope">
<dict-tag
:type="DICT_TYPE.ARCHIVES_FILE_TYPE"
:value="scope.row.type"
/>
</template>
</el-table-column>
<el-table-column label="档案位置" align="center" prop="position" />
<el-table-column label="保存期限" align="center" prop="timeLimit">
</el-table-column>

Loading…
Cancel
Save