|
|
|
@ -9,13 +9,20 @@
|
|
|
|
|
v-show="showSearch"
|
|
|
|
|
label-width="88px"
|
|
|
|
|
>
|
|
|
|
|
<el-form-item label="档案类型" prop="vouNum">
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="queryParams.type"
|
|
|
|
|
placeholder="请输入档案类型"
|
|
|
|
|
<el-form-item label="档案类型" prop="fileType">
|
|
|
|
|
<el-select
|
|
|
|
|
v-model="queryParams.fileType"
|
|
|
|
|
placeholder="请选择档案类型"
|
|
|
|
|
clearable
|
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
|
/>
|
|
|
|
|
>
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="item in fileTypeOptions"
|
|
|
|
|
:key="item.id"
|
|
|
|
|
:value="item.value"
|
|
|
|
|
:label="item.label"
|
|
|
|
|
>
|
|
|
|
|
</el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="全宗号" prop="caseNum">
|
|
|
|
|
<el-select
|
|
|
|
@ -72,7 +79,6 @@
|
|
|
|
|
icon="el-icon-plus"
|
|
|
|
|
size="mini"
|
|
|
|
|
@click="handleAuth"
|
|
|
|
|
v-hasPermi="['archives:record:create']"
|
|
|
|
|
>鉴定</el-button
|
|
|
|
|
>
|
|
|
|
|
</el-col>
|
|
|
|
@ -90,7 +96,6 @@
|
|
|
|
|
>
|
|
|
|
|
<el-table-column type="selection" width="55" align="center" />
|
|
|
|
|
<el-table-column label="业务实体" align="center" prop="company" />
|
|
|
|
|
<el-table-column label="归档频次" align="center" prop="frequency" />
|
|
|
|
|
<el-table-column label="档案类型" align="center" prop="fileType">
|
|
|
|
|
<template v-slot="scope">
|
|
|
|
|
<dict-tag
|
|
|
|
@ -99,25 +104,12 @@
|
|
|
|
|
/>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="会计年份" align="center" prop="year" />
|
|
|
|
|
<el-table-column label="会计月份" align="center" prop="period" />
|
|
|
|
|
<el-table-column label="起止凭证号" align="center" prop="vouNum" />
|
|
|
|
|
<el-table-column label="档案位置" align="center" prop="site" />
|
|
|
|
|
<el-table-column label="全宗号" align="center" prop="caseNum" />
|
|
|
|
|
<el-table-column label="目录号" align="center" prop="catalogNum" />
|
|
|
|
|
<el-table-column label="案卷号" align="center" prop="filesNum" />
|
|
|
|
|
<el-table-column label="档案位置" align="center" prop="site" />
|
|
|
|
|
<el-table-column label="关联号" align="center" prop="flowId" />
|
|
|
|
|
<el-table-column
|
|
|
|
|
label="创建日期"
|
|
|
|
|
align="center"
|
|
|
|
|
prop="createTime"
|
|
|
|
|
width="160"
|
|
|
|
|
>
|
|
|
|
|
<template v-slot="scope">
|
|
|
|
|
<span>{{ parseTime(scope.row.createTime) }}</span>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="归档详情" align="center" prop="note" />
|
|
|
|
|
<el-table-column label="会计年份" align="center" prop="year" />
|
|
|
|
|
<el-table-column label="会计月份" align="center" prop="period" />
|
|
|
|
|
<el-table-column label="归档状态" align="center" prop="fileStatus">
|
|
|
|
|
<template v-slot="scope">
|
|
|
|
|
<dict-tag
|
|
|
|
@ -126,7 +118,6 @@
|
|
|
|
|
/>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="借阅状态" align="center" prop="borrowStatus" />
|
|
|
|
|
<el-table-column label="鉴定状态" align="center" prop="identifyStatus" />
|
|
|
|
|
<el-table-column label="归档时间" align="center" prop="recordTime" />
|
|
|
|
|
<el-table-column label="备注" align="center" prop="remark" />
|
|
|
|
@ -143,19 +134,7 @@
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
import {
|
|
|
|
|
createRecord,
|
|
|
|
|
updateRecord,
|
|
|
|
|
deleteRecord,
|
|
|
|
|
getRecord,
|
|
|
|
|
exportRecordExcel,
|
|
|
|
|
createCodeRule,
|
|
|
|
|
archivesRecord,
|
|
|
|
|
} from "@/api/archives/record";
|
|
|
|
|
// import { listDept } from "@/api/system/dept";
|
|
|
|
|
import { listData } from "@/api/system/dict/data";
|
|
|
|
|
import { getSiteTree } from "@/api/setting/organization";
|
|
|
|
|
import { getOrganizationPage } from "@/api/setting/organization";
|
|
|
|
|
import { getAuthenticateList } from "@/api/fileAuth/authenticate";
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
@ -163,21 +142,6 @@ export default {
|
|
|
|
|
components: {},
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
propName: {
|
|
|
|
|
checkStrictly: true,
|
|
|
|
|
label: "name",
|
|
|
|
|
value: "id",
|
|
|
|
|
multiple: false,
|
|
|
|
|
},
|
|
|
|
|
propName1: {
|
|
|
|
|
label: "pName",
|
|
|
|
|
value: "pId",
|
|
|
|
|
multiple: false,
|
|
|
|
|
},
|
|
|
|
|
companyOptions: [], //业务实体数据
|
|
|
|
|
companyArray: [], //业务实体选中值
|
|
|
|
|
siteOptions: [], //归档位置数据
|
|
|
|
|
siteArray: [], //归档位置选中值
|
|
|
|
|
// 遮罩层
|
|
|
|
|
loading: true,
|
|
|
|
|
// 非多个禁用
|
|
|
|
@ -198,55 +162,23 @@ export default {
|
|
|
|
|
queryParams: {
|
|
|
|
|
pageNo: 1,
|
|
|
|
|
pageSize: 10,
|
|
|
|
|
companyId: null,
|
|
|
|
|
company: null,
|
|
|
|
|
frequency: null,
|
|
|
|
|
fileType: null,
|
|
|
|
|
year: null,
|
|
|
|
|
period: null,
|
|
|
|
|
vouNum: null,
|
|
|
|
|
caseNum: null,
|
|
|
|
|
catalogNum: null,
|
|
|
|
|
filesNum: null,
|
|
|
|
|
site: null,
|
|
|
|
|
flowId: null,
|
|
|
|
|
createTime: [],
|
|
|
|
|
status: null,
|
|
|
|
|
note: null,
|
|
|
|
|
fileStatus: null,
|
|
|
|
|
borrowStatus: null,
|
|
|
|
|
identifyStatus: null,
|
|
|
|
|
remark: null,
|
|
|
|
|
recordTime: [],
|
|
|
|
|
deptId: null,
|
|
|
|
|
deptName: null,
|
|
|
|
|
attr1: null,
|
|
|
|
|
attr2: null,
|
|
|
|
|
attr3: null,
|
|
|
|
|
attr4: null,
|
|
|
|
|
userId: null,
|
|
|
|
|
organizationId: null, //立档单位
|
|
|
|
|
depotId: null, //库房
|
|
|
|
|
cabinetId: null, //档案柜
|
|
|
|
|
},
|
|
|
|
|
// 表单参数
|
|
|
|
|
form: {},
|
|
|
|
|
Fileform: {},
|
|
|
|
|
// 选中数组
|
|
|
|
|
ids: [],
|
|
|
|
|
// 表单校验
|
|
|
|
|
rules: {},
|
|
|
|
|
fileTypeOptions: [], //档案类型
|
|
|
|
|
fileStatusOptions: [], //归档状态
|
|
|
|
|
catalogNumOptions: [], //目录号
|
|
|
|
|
caseNumOptions: [], //全宗号
|
|
|
|
|
organizationList: [],
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
created() {
|
|
|
|
|
this.getList();
|
|
|
|
|
this.getOrganizationList();
|
|
|
|
|
this.getSiteList();
|
|
|
|
|
this.handleInitList();
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
@ -265,30 +197,6 @@ export default {
|
|
|
|
|
this.ids = selection.map((item) => item.id);
|
|
|
|
|
this.multiple = !selection.length;
|
|
|
|
|
},
|
|
|
|
|
// //获取业务实体
|
|
|
|
|
// getCompanyList() {
|
|
|
|
|
// listDept().then((response) => {
|
|
|
|
|
// this.companyOptions = this.handleTree(response.data, "id", "parentId");
|
|
|
|
|
// console.log(this.companyOptions);
|
|
|
|
|
// });
|
|
|
|
|
// },
|
|
|
|
|
// handleChange(value) {
|
|
|
|
|
// console.log(value, value[value.length - 1]);
|
|
|
|
|
// this.form.companyId = value[value.length - 1]; //id处理
|
|
|
|
|
// },
|
|
|
|
|
// 获取立档单位
|
|
|
|
|
getOrganizationList() {
|
|
|
|
|
getOrganizationPage().then((response) => {
|
|
|
|
|
this.organizationList = response.data.list;
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
handleCompanyChange(val) {
|
|
|
|
|
var data = this.organizationList.find((item) => item.id == val);
|
|
|
|
|
console.log(data);
|
|
|
|
|
this.form.caseNum = data.caseNum;
|
|
|
|
|
this.Fileform.caseNum = data.caseNum;
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
//获取字典数据
|
|
|
|
|
handleInitList() {
|
|
|
|
|
// 获取档案类型
|
|
|
|
@ -324,41 +232,6 @@ export default {
|
|
|
|
|
this.fileStatusOptions = res.data.list || [];
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
//获取归档位置
|
|
|
|
|
getSiteList() {
|
|
|
|
|
getSiteTree().then((response) => {
|
|
|
|
|
this.siteOptions = response.data;
|
|
|
|
|
this.siteOptions.map((w) => {
|
|
|
|
|
w.children.map((l) => {
|
|
|
|
|
let lstr = JSON.stringify(l.children)
|
|
|
|
|
.replace(/depotId/g, "lId")
|
|
|
|
|
.replace(/cabinetId/g, "pId")
|
|
|
|
|
.replace(/cabinetName/g, "pName");
|
|
|
|
|
l.children = JSON.parse(lstr);
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
let wstr = JSON.stringify(w.children)
|
|
|
|
|
.replace(/organizationId/g, "wId")
|
|
|
|
|
.replace(/depotId/g, "pId")
|
|
|
|
|
.replace(/depotName/g, "pName");
|
|
|
|
|
w.children = JSON.parse(wstr);
|
|
|
|
|
});
|
|
|
|
|
let ostr = JSON.stringify(this.siteOptions)
|
|
|
|
|
.replace(/organizationId/g, "pId")
|
|
|
|
|
.replace(/organizationName/g, "pName");
|
|
|
|
|
this.siteOptions = JSON.parse(ostr);
|
|
|
|
|
console.log(this.siteOptions);
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
//选择默认的归档位置
|
|
|
|
|
handleSiteChanged(obj) {
|
|
|
|
|
if (obj != null) {
|
|
|
|
|
this.form.organizationId = obj[0];
|
|
|
|
|
this.form.depotId = obj[1];
|
|
|
|
|
this.form.cabinetId = obj[2];
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
/** 取消按钮 */
|
|
|
|
|
cancel() {
|
|
|
|
|
this.open = false;
|
|
|
|
@ -375,32 +248,7 @@ export default {
|
|
|
|
|
year: undefined,
|
|
|
|
|
period: undefined,
|
|
|
|
|
vouNum: undefined,
|
|
|
|
|
caseNum: undefined,
|
|
|
|
|
catalogNum: undefined,
|
|
|
|
|
filesNum: undefined,
|
|
|
|
|
site: undefined,
|
|
|
|
|
flowId: undefined,
|
|
|
|
|
status: undefined,
|
|
|
|
|
note: undefined,
|
|
|
|
|
fileStatus: undefined,
|
|
|
|
|
borrowStatus: undefined,
|
|
|
|
|
identifyStatus: undefined,
|
|
|
|
|
remark: undefined,
|
|
|
|
|
recordTime: undefined,
|
|
|
|
|
deptId: undefined,
|
|
|
|
|
deptName: undefined,
|
|
|
|
|
attr1: undefined,
|
|
|
|
|
attr2: undefined,
|
|
|
|
|
attr3: undefined,
|
|
|
|
|
attr4: undefined,
|
|
|
|
|
userId: undefined,
|
|
|
|
|
};
|
|
|
|
|
this.Fileform = {
|
|
|
|
|
catalogNum: null,
|
|
|
|
|
caseNum: null,
|
|
|
|
|
};
|
|
|
|
|
this.companyArray = [];
|
|
|
|
|
this.siteArray = [];
|
|
|
|
|
this.resetForm("form");
|
|
|
|
|
},
|
|
|
|
|
/** 搜索按钮操作 */
|
|
|
|
|