新增装册管理

main
mo 1 year ago
parent 3a86ff2de5
commit ec639374cd

@ -13,12 +13,16 @@ export default {
components: { ThemePicker }, components: { ThemePicker },
metaInfo() { metaInfo() {
return { return {
title: this.$store.state.settings.dynamicTitle && this.$store.state.settings.title, title:
titleTemplate: title => { this.$store.state.settings.dynamicTitle &&
return title ? `${title} - ${process.env.VUE_APP_TITLE}` : process.env.VUE_APP_TITLE this.$store.state.settings.title,
} titleTemplate: (title) => {
} return title
} ? `${title} - ${process.env.VUE_APP_TITLE}`
: process.env.VUE_APP_TITLE;
},
};
},
}; };
</script> </script>
<style scoped> <style scoped>

@ -144,5 +144,14 @@ export function reqCheck(data) {
}) })
} }
// 获取详情
export function getCodeValueo() {
return request({
url: '/archives/packages/getByCodeValue',
method: 'get'
})
}
export class socialBindLogin { export class socialBindLogin {
} }

@ -0,0 +1,253 @@
<template>
<el-dialog
title="档案选择"
v-if="showFlag"
:visible.sync="showFlag"
:modal="false"
width="80%"
center
>
<!-- <el-form
:model="queryParams"
ref="queryForm"
size="small"
:inline="true"
v-show="showSearch"
label-width="100px"
>
<el-row>
<el-col :span="6">
<el-form-item label="会计科目编号" prop="accountCode">
<el-input
v-model="queryParams.accountCode"
placeholder="请输入会计科目编号"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="会计科目名称" prop="accountName">
<el-input
v-model="queryParams.accountName"
placeholder="请输入会计科目名称"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item>
<el-button
type="primary"
icon="el-icon-search"
size="mini"
@click="handleQuery"
>搜索</el-button
>
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery"
>重置</el-button
>
</el-form-item>
</el-col>
</el-row>
</el-form> -->
<el-row>
<right-toolbar
:showSearch.sync="showSearch"
@queryTable="getList"
></right-toolbar>
</el-row>
<el-table
v-loading="loading"
:data="accountList"
@current-change="handleCurrent"
@row-dblclick="handleRowDbClick"
>
<el-table-column width="50" align="center">
<template v-slot="scope">
<el-radio
v-model="selectedAccountId"
:label="scope.row.subjectId"
@change="handleRowChange(scope.row)"
>{{ "" }}</el-radio
>
</template>
</el-table-column>
<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
:type="DICT_TYPE.ARCHIVES_FILE_TYPE"
:value="scope.row.fileType"
/>
</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="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="fileStatus">
<template v-slot="scope">
<dict-tag
:type="DICT_TYPE.ARCHIVES_FILE_STATUS"
:value="scope.row.fileStatus"
/>
</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" />
</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 { getRecordPage } from "@/api/archives/record";
export default {
name: "ArchivesSelect",
data() {
return {
showFlag: false,
selectedAccountId: undefined,
selectedRow: undefined,
//
loading: true,
//
single: true,
//
multiple: true,
//
showSearch: true,
//
total: 0,
//
accountList: [],
//
title: "",
//
open: false,
//
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, //
},
};
},
created() {
this.getList();
},
methods: {
/** 查询列表 */
getList() {
this.loading = true;
getRecordPage(this.queryParams).then((response) => {
this.accountList = 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.selectedAccountId == null || this.selectedAccountId == 0) {
this.$notify({
title: "提示",
type: "warning",
message: "请至少选择一条数据!",
});
return;
}
this.$emit("onSelected", this.selectedRow);
this.showFlag = false;
},
},
};
</script>

@ -9,7 +9,7 @@ import { isRelogin } from '@/utils/request'
NProgress.configure({ showSpinner: false }) NProgress.configure({ showSpinner: false })
// 增加三方登陆 update by 芋艿 // 增加三方登陆 update by 芋艿
const whiteList = ['/login', '/social-login', '/auth-redirect', '/bind', '/register', '/oauthLogin/gitee', '/rePassword'] const whiteList = ['/login', '/social-login', '/auth-redirect', '/bind', '/register', '/oauthLogin/gitee', '/rePassword',, '/info']
router.beforeEach((to, from, next) => { router.beforeEach((to, from, next) => {
NProgress.start() NProgress.start()

@ -46,6 +46,11 @@ export const constantRoutes = [
component: (resolve) => require(['@/views/login'], resolve), component: (resolve) => require(['@/views/login'], resolve),
hidden: true hidden: true
}, },
{
path: '/info',
component: (resolve) => require(['@/views/info'], resolve),
hidden: true
},
{ {
path: '/rePassword', path: '/rePassword',
component: (resolve) => require(['@/views/rePassword'], resolve), component: (resolve) => require(['@/views/rePassword'], resolve),

@ -1,89 +1,136 @@
<template> <template>
<div class="app-container"> <div class="app-container">
<!-- 搜索工作栏 --> <!-- 搜索工作栏 -->
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px"> <el-form
<el-form-item label="库房id" prop="depotId"> :model="queryParams"
<el-input v-model="queryParams.depotId" placeholder="请输入库房id" clearable @keyup.enter.native="handleQuery"/> ref="queryForm"
</el-form-item> size="small"
<el-form-item label="库房名称" prop="depotName"> :inline="true"
<el-input v-model="queryParams.depotName" placeholder="请输入库房名称" clearable @keyup.enter.native="handleQuery"/> v-show="showSearch"
</el-form-item> label-width="98px"
<el-form-item label="档案柜id" prop="cabinetId"> >
<el-input v-model="queryParams.cabinetId" placeholder="请输入档案柜id" clearable @keyup.enter.native="handleQuery"/> <el-form-item label="库房" prop="depotName">
</el-form-item> <el-input
<el-form-item label="档案柜名称" prop="cabinetName"> v-model="queryParams.depotName"
<el-input v-model="queryParams.cabinetName" placeholder="请输入档案柜名称" clearable @keyup.enter.native="handleQuery"/> placeholder="请输入库房"
</el-form-item> clearable
<el-form-item label="档案id" prop="recordId"> @keyup.enter.native="handleQuery"
<el-input v-model="queryParams.recordId" placeholder="请输入档案id" clearable @keyup.enter.native="handleQuery"/> />
</el-form-item> </el-form-item>
<el-form-item label="业务实体id" prop="companyId"> <el-form-item label="档案柜" prop="cabinetName">
<el-input v-model="queryParams.companyId" placeholder="请输入业务实体id" clearable @keyup.enter.native="handleQuery"/> <el-input
v-model="queryParams.cabinetName"
placeholder="请输入档案柜"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item> </el-form-item>
<el-form-item label="业务实体" prop="company"> <el-form-item label="业务实体" prop="company">
<el-input v-model="queryParams.company" placeholder="请输入业务实体" clearable @keyup.enter.native="handleQuery"/> <el-input
v-model="queryParams.company"
placeholder="请输入业务实体"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item> </el-form-item>
<el-form-item label="会计年份" prop="year"> <el-form-item label="会计年份" prop="year">
<el-input v-model="queryParams.year" placeholder="请输入会计年份" clearable @keyup.enter.native="handleQuery"/> <el-input
v-model="queryParams.year"
placeholder="请输入会计年份"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item> </el-form-item>
<el-form-item label="会计月份" prop="period"> <el-form-item label="会计月份" prop="period">
<el-input v-model="queryParams.period" placeholder="请输入会计月份" clearable @keyup.enter.native="handleQuery"/> <el-input
</el-form-item> v-model="queryParams.period"
<el-form-item label="负责人名称" prop="manegeName"> placeholder="请输入会计月份"
<el-input v-model="queryParams.manegeName" placeholder="请输入负责人名称" clearable @keyup.enter.native="handleQuery"/> clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="负责人" prop="manegeName">
<el-input
v-model="queryParams.manegeName"
placeholder="请输入负责人"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item> </el-form-item>
<el-form-item label="全宗号" prop="caseNum"> <el-form-item label="全宗号" prop="caseNum">
<el-input v-model="queryParams.caseNum" placeholder="请输入全宗号" clearable @keyup.enter.native="handleQuery"/> <el-input
v-model="queryParams.caseNum"
placeholder="请输入全宗号"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item> </el-form-item>
<el-form-item label="目录号" prop="catalogNum"> <el-form-item label="目录号" prop="catalogNum">
<el-input v-model="queryParams.catalogNum" placeholder="请输入目录号" clearable @keyup.enter.native="handleQuery"/> <el-input
v-model="queryParams.catalogNum"
placeholder="请输入目录号"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item> </el-form-item>
<el-form-item label="案卷号" prop="filesNum"> <el-form-item label="案卷号" prop="filesNum">
<el-input v-model="queryParams.filesNum" placeholder="请输入案卷号" clearable @keyup.enter.native="handleQuery"/> <el-input
v-model="queryParams.filesNum"
placeholder="请输入案卷号"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item> </el-form-item>
<el-form-item label="关联号" prop="flowId"> <el-form-item label="关联号" prop="flowId">
<el-input v-model="queryParams.flowId" placeholder="请输入关联号" clearable @keyup.enter.native="handleQuery"/> <el-input
</el-form-item> v-model="queryParams.flowId"
<el-form-item label="创建日期" prop="createTime"> placeholder="请输入关联号"
<el-date-picker v-model="queryParams.createTime" style="width: 240px" value-format="yyyy-MM-dd HH:mm:ss" type="daterange" clearable
range-separator="-" start-placeholder="开始日期" end-placeholder="结束日期" :default-time="['00:00:00', '23:59:59']" /> @keyup.enter.native="handleQuery"
</el-form-item> />
<el-form-item label="状态待装册,已装册" prop="status"> </el-form-item>
<el-select v-model="queryParams.status" placeholder="请选择状态待装册,已装册" clearable size="small"> <el-form-item label="状态" prop="status">
<el-select
v-model="queryParams.status"
placeholder="请选择状态"
clearable
size="small"
>
<el-option label="请选择字典生成" value="" /> <el-option label="请选择字典生成" value="" />
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="备注" prop="remark">
<el-input v-model="queryParams.remark" placeholder="请输入备注" clearable @keyup.enter.native="handleQuery"/>
</el-form-item>
<el-form-item label="装册时间" prop="packageTime"> <el-form-item label="装册时间" prop="packageTime">
<el-date-picker v-model="queryParams.packageTime" style="width: 240px" value-format="yyyy-MM-dd HH:mm:ss" type="daterange" <el-date-picker
range-separator="-" start-placeholder="开始日期" end-placeholder="结束日期" :default-time="['00:00:00', '23:59:59']" /> v-model="queryParams.packageTime"
</el-form-item> style="width: 240px"
<el-form-item label="所属部门id" prop="deptId"> value-format="yyyy-MM-dd HH:mm:ss"
<el-input v-model="queryParams.deptId" placeholder="请输入所属部门id" clearable @keyup.enter.native="handleQuery"/> type="daterange"
</el-form-item> range-separator="-"
<el-form-item label="用户id" prop="userId"> start-placeholder="开始日期"
<el-input v-model="queryParams.userId" placeholder="请输入用户id" clearable @keyup.enter.native="handleQuery"/> end-placeholder="结束日期"
:default-time="['00:00:00', '23:59:59']"
/>
</el-form-item> </el-form-item>
<el-form-item label="所属部门" prop="deptName"> <el-form-item label="所属部门" prop="deptName">
<el-input v-model="queryParams.deptName" placeholder="请输入所属部门" clearable @keyup.enter.native="handleQuery"/> <el-input
</el-form-item> v-model="queryParams.deptName"
<el-form-item label="制单人" prop="createBy"> placeholder="请输入所属部门"
<el-input v-model="queryParams.createBy" placeholder="请输入制单人" clearable @keyup.enter.native="handleQuery"/> clearable
</el-form-item> @keyup.enter.native="handleQuery"
<el-form-item label="条码地址" prop="codeUrl"> />
<el-input v-model="queryParams.codeUrl" placeholder="请输入条码地址" clearable @keyup.enter.native="handleQuery"/>
</el-form-item> </el-form-item>
<el-form-item label="条码值" prop="codeValue"> <el-form-item label="条码值" prop="codeValue">
<el-input v-model="queryParams.codeValue" placeholder="请输入条码值" clearable @keyup.enter.native="handleQuery"/> <el-input
</el-form-item> v-model="queryParams.codeValue"
<el-form-item label="装册数量" prop="packageNum"> placeholder="请输入条码值"
<el-input v-model="queryParams.packageNum" placeholder="请输入装册数量" clearable @keyup.enter.native="handleQuery"/> clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" icon="el-icon-search" @click="handleQuery"></el-button> <el-button type="primary" icon="el-icon-search" @click="handleQuery"
>搜索</el-button
>
<el-button icon="el-icon-refresh" @click="resetQuery"></el-button> <el-button icon="el-icon-refresh" @click="resetQuery"></el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
@ -91,137 +138,225 @@
<!-- 操作工具栏 --> <!-- 操作工具栏 -->
<el-row :gutter="10" class="mb8"> <el-row :gutter="10" class="mb8">
<el-col :span="1.5"> <el-col :span="1.5">
<el-button type="primary" plain icon="el-icon-plus" size="mini" @click="handleAdd" <el-button
v-hasPermi="['archives:packages:create']">新增</el-button> type="primary"
plain
icon="el-icon-plus"
size="mini"
@click="handleAdd"
v-hasPermi="['archives:packages:create']"
>新增</el-button
>
</el-col> </el-col>
<el-col :span="1.5"> <el-col :span="1.5">
<el-button type="warning" plain icon="el-icon-download" size="mini" @click="handleExport" :loading="exportLoading" <el-button
v-hasPermi="['archives:packages:export']">导出</el-button> type="warning"
plain
icon="el-icon-download"
size="mini"
@click="handleExport"
:loading="exportLoading"
v-hasPermi="['archives:packages:export']"
>导出</el-button
>
</el-col> </el-col>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> <right-toolbar
:showSearch.sync="showSearch"
@queryTable="getList"
></right-toolbar>
</el-row> </el-row>
<!-- 列表 --> <!-- 列表 -->
<el-table v-loading="loading" :data="list"> <el-table v-loading="loading" :data="list">
<el-table-column label="主键" align="center" prop="id" /> <!-- <el-table-column label="主键" align="center" prop="id" /> -->
<el-table-column label="库房id" align="center" prop="depotId" />
<el-table-column label="库房名称" align="center" prop="depotName" />
<el-table-column label="档案柜id" align="center" prop="cabinetId" />
<el-table-column label="档案柜名称" align="center" prop="cabinetName" />
<el-table-column label="档案id" align="center" prop="recordId" />
<el-table-column label="业务实体id" align="center" prop="companyId" />
<el-table-column label="业务实体" align="center" prop="company" /> <el-table-column label="业务实体" align="center" prop="company" />
<el-table-column label="库房" align="center" prop="depotName" />
<el-table-column label="档案柜" align="center" prop="cabinetName" />
<el-table-column label="会计年份" align="center" prop="year" /> <el-table-column label="会计年份" align="center" prop="year" />
<el-table-column label="会计月份" align="center" prop="period" /> <el-table-column label="会计月份" align="center" prop="period" />
<el-table-column label="负责人名称" align="center" prop="manegeName" /> <el-table-column label="负责人" align="center" prop="manegeName" />
<el-table-column label="全宗号" align="center" prop="caseNum" /> <el-table-column label="全宗号" align="center" prop="caseNum" />
<el-table-column label="目录号" align="center" prop="catalogNum" /> <el-table-column label="目录号" align="center" prop="catalogNum" />
<el-table-column label="案卷号" align="center" prop="filesNum" /> <el-table-column label="案卷号" align="center" prop="filesNum" />
<el-table-column label="关联号" align="center" prop="flowId" /> <el-table-column label="关联号" align="center" prop="flowId" />
<el-table-column label="创建日期" align="center" prop="createTime" width="180"> <el-table-column
label="创建日期"
align="center"
prop="createTime"
width="180"
>
<template v-slot="scope"> <template v-slot="scope">
<span>{{ parseTime(scope.row.createTime) }}</span> <span>{{ parseTime(scope.row.createTime) }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="状态待装册,已装册" align="center" prop="status" /> <el-table-column label="状态" align="center" prop="status" />
<el-table-column label="备注" align="center" prop="remark" />
<el-table-column label="装册时间" align="center" prop="packageTime" /> <el-table-column label="装册时间" align="center" prop="packageTime" />
<el-table-column label="所属部门id" align="center" prop="deptId" />
<el-table-column label="用户id" align="center" prop="userId" />
<el-table-column label="所属部门" align="center" prop="deptName" /> <el-table-column label="所属部门" align="center" prop="deptName" />
<el-table-column label="制单人" align="center" prop="createBy" /> <el-table-column
<el-table-column label="条码地址" align="center" prop="codeUrl" /> label="条码地址"
<el-table-column label="条码值" align="center" prop="codeValue" /> align="center"
prop="codeUrl"
width="130"
>
<template slot-scope="scope">
<el-image
class="barcodeClass"
fit="scale-down"
:src="scope.row.codeUrl"
>
<div slot="error" class="image-slot">
<i class="el-icon-picture-outline"></i>
</div>
</el-image>
</template>
</el-table-column>
<!-- <el-table-column label="条码值" align="center" prop="codeValue" /> -->
<el-table-column label="装册数量" align="center" prop="packageNum" /> <el-table-column label="装册数量" align="center" prop="packageNum" />
<el-table-column label="操作" align="center" class-name="small-padding fixed-width"> <el-table-column label="备注" align="center" prop="remark" />
<el-table-column
label="操作"
align="center"
class-name="small-padding fixed-width"
>
<template v-slot="scope"> <template v-slot="scope">
<el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)" <el-button
v-hasPermi="['archives:packages:update']">修改</el-button> size="mini"
<el-button size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)" type="text"
v-hasPermi="['archives:packages:delete']">删除</el-button> icon="el-icon-edit"
@click="handleUpdate(scope.row)"
v-hasPermi="['archives:packages:update']"
>修改</el-button
>
<el-button
size="mini"
type="text"
icon="el-icon-delete"
@click="handleDelete(scope.row)"
v-hasPermi="['archives:packages:delete']"
>删除</el-button
>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<!-- 分页组件 --> <!-- 分页组件 -->
<pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNo" :limit.sync="queryParams.pageSize" <pagination
@pagination="getList"/> v-show="total > 0"
:total="total"
:page.sync="queryParams.pageNo"
:limit.sync="queryParams.pageSize"
@pagination="getList"
/>
<!-- 对话框(添加 / 修改) --> <!-- 对话框(添加 / 修改) -->
<el-dialog :title="title" :visible.sync="open" width="500px" v-dialogDrag append-to-body> <el-dialog
<el-form ref="form" :model="form" :rules="rules" label-width="80px"> :title="title"
<el-form-item label="库房id" prop="depotId"> :visible.sync="open"
<el-input v-model="form.depotId" placeholder="请输入库房id" /> width="1000px"
append-to-body
>
<el-form ref="form" :model="form" :rules="rules" label-width="100px">
<el-row>
<el-col :span="8">
<el-form-item label="业务实体" prop="company">
<el-input
v-model="form.company"
placeholder="请选择档案"
readonly
>
<el-button
slot="append"
@click="handleSelectArchives"
icon="el-icon-search"
style="
border-color: #46a6ff;
background-color: #46a6ff;
color: white;
"
></el-button>
</el-input>
<ArchivesSelect
ref="ArchivesSelect"
@onSelected="onArchivesSelected"
/>
</el-form-item> </el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="库房名称" prop="depotName"> <el-form-item label="库房名称" prop="depotName">
<el-input v-model="form.depotName" placeholder="请输入库房名称" /> <el-input v-model="form.depotName" placeholder="" readonly />
</el-form-item>
<el-form-item label="档案柜id" prop="cabinetId">
<el-input v-model="form.cabinetId" placeholder="请输入档案柜id" />
</el-form-item> </el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="档案柜名称" prop="cabinetName"> <el-form-item label="档案柜名称" prop="cabinetName">
<el-input v-model="form.cabinetName" placeholder="请输入档案柜名称" /> <el-input v-model="form.cabinetName" placeholder="" readonly />
</el-form-item>
<el-form-item label="档案id" prop="recordId">
<el-input v-model="form.recordId" placeholder="请输入档案id" />
</el-form-item>
<el-form-item label="业务实体id" prop="companyId">
<el-input v-model="form.companyId" placeholder="请输入业务实体id" />
</el-form-item>
<el-form-item label="业务实体" prop="company">
<el-input v-model="form.company" placeholder="请输入业务实体" />
</el-form-item> </el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="8">
<el-form-item label="会计年份" prop="year"> <el-form-item label="会计年份" prop="year">
<el-input v-model="form.year" placeholder="请输入会计年份" /> <el-input v-model="form.year" placeholder="" readonly />
</el-form-item> </el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="会计月份" prop="period"> <el-form-item label="会计月份" prop="period">
<el-input v-model="form.period" placeholder="请输入会计月份" /> <el-input v-model="form.period" placeholder="" readonly />
</el-form-item>
<el-form-item label="负责人名称" prop="manegeName">
<el-input v-model="form.manegeName" placeholder="请输入负责人名称" />
</el-form-item> </el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="全宗号" prop="caseNum"> <el-form-item label="全宗号" prop="caseNum">
<el-input v-model="form.caseNum" placeholder="请输入全宗号" /> <el-input v-model="form.caseNum" placeholder="" readonly />
</el-form-item> </el-form-item> </el-col
></el-row>
<el-row>
<el-col :span="8">
<el-form-item label="目录号" prop="catalogNum"> <el-form-item label="目录号" prop="catalogNum">
<el-input v-model="form.catalogNum" placeholder="请输入目录号" /> <el-input v-model="form.catalogNum" placeholder="" readonly />
</el-form-item> </el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="案卷号" prop="filesNum"> <el-form-item label="案卷号" prop="filesNum">
<el-input v-model="form.filesNum" placeholder="请输入案卷号" /> <el-input v-model="form.filesNum" placeholder="" readonly />
</el-form-item> </el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="关联号" prop="flowId"> <el-form-item label="关联号" prop="flowId">
<el-input v-model="form.flowId" placeholder="请输入关联号" /> <el-input v-model="form.flowId" placeholder="" readonly />
</el-form-item> </el-form-item>
<el-form-item label="状态待装册,已装册" prop="status"> </el-col>
</el-row>
<!-- <el-form-item label="状态待装册,已装册" prop="status">
<el-radio-group v-model="form.status"> <el-radio-group v-model="form.status">
<el-radio label="1">请选择字典生成</el-radio> <el-radio label="1">请选择字典生成</el-radio>
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item> -->
<el-form-item label="备注" prop="remark"> <el-row>
<el-input v-model="form.remark" placeholder="请输入备注" /> <el-col :span="8">
</el-form-item>
<el-form-item label="装册时间" prop="packageTime"> <el-form-item label="装册时间" prop="packageTime">
<el-date-picker clearable v-model="form.packageTime" type="date" value-format="timestamp" placeholder="选择装册时间" /> <el-date-picker
</el-form-item> clearable
<el-form-item label="所属部门id" prop="deptId"> v-model="form.packageTime"
<el-input v-model="form.deptId" placeholder="请输入所属部门id" /> type="date"
</el-form-item> value-format="yyyy-MM-dd"
<el-form-item label="用户id" prop="userId"> placeholder="请输入装册时间"
<el-input v-model="form.userId" placeholder="请输入用户id" /> />
</el-form-item>
<el-form-item label="所属部门" prop="deptName">
<el-input v-model="form.deptName" placeholder="请输入所属部门" />
</el-form-item>
<el-form-item label="制单人" prop="createBy">
<el-input v-model="form.createBy" placeholder="请输入制单人" />
</el-form-item>
<el-form-item label="条码地址" prop="codeUrl">
<el-input v-model="form.codeUrl" placeholder="请输入条码地址" />
</el-form-item>
<el-form-item label="条码值" prop="codeValue">
<el-input v-model="form.codeValue" placeholder="请输入条码值" />
</el-form-item> </el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="装册数量" prop="packageNum"> <el-form-item label="装册数量" prop="packageNum">
<el-input v-model="form.packageNum" placeholder="请输入装册数量" /> <el-input
v-model="form.packageNum"
placeholder="请输入装册数量"
/>
</el-form-item>
</el-col>
</el-row>
<el-form-item label="备注" prop="remark">
<el-input
v-model="form.remark"
type="textarea"
placeholder="请输入备注"
readonly
/>
</el-form-item> </el-form-item>
</el-form> </el-form>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
@ -233,12 +368,19 @@
</template> </template>
<script> <script>
import { createPackages, updatePackages, deletePackages, getPackages, getPackagesPage, exportPackagesExcel } from "@/api/archives/packages"; import {
createPackages,
updatePackages,
deletePackages,
getPackages,
getPackagesPage,
exportPackagesExcel,
} from "@/api/archives/packages";
import ArchivesSelect from "@/components/ArchivesSelect/single.vue";
export default { export default {
name: "Packages", name: "Packages",
components: { components: { ArchivesSelect },
},
data() { data() {
return { return {
// //
@ -288,8 +430,7 @@ export default {
// //
form: {}, form: {},
// //
rules: { rules: {},
}
}; };
}, },
created() { created() {
@ -300,7 +441,7 @@ export default {
getList() { getList() {
this.loading = true; this.loading = true;
// //
getPackagesPage(this.queryParams).then(response => { getPackagesPage(this.queryParams).then((response) => {
this.list = response.data.list; this.list = response.data.list;
this.total = response.data.total; this.total = response.data.total;
this.loading = false; this.loading = false;
@ -362,7 +503,7 @@ export default {
handleUpdate(row) { handleUpdate(row) {
this.reset(); this.reset();
const id = row.id; const id = row.id;
getPackages(id).then(response => { getPackages(id).then((response) => {
this.form = response.data; this.form = response.data;
this.open = true; this.open = true;
this.title = "修改装册"; this.title = "修改装册";
@ -370,13 +511,13 @@ export default {
}, },
/** 提交按钮 */ /** 提交按钮 */
submitForm() { submitForm() {
this.$refs["form"].validate(valid => { this.$refs["form"].validate((valid) => {
if (!valid) { if (!valid) {
return; return;
} }
// //
if (this.form.id != null) { if (this.form.id != null) {
updatePackages(this.form).then(response => { updatePackages(this.form).then((response) => {
this.$modal.msgSuccess("修改成功"); this.$modal.msgSuccess("修改成功");
this.open = false; this.open = false;
this.getList(); this.getList();
@ -384,7 +525,7 @@ export default {
return; return;
} }
// //
createPackages(this.form).then(response => { createPackages(this.form).then((response) => {
this.$modal.msgSuccess("新增成功"); this.$modal.msgSuccess("新增成功");
this.open = false; this.open = false;
this.getList(); this.getList();
@ -394,27 +535,46 @@ export default {
/** 删除按钮操作 */ /** 删除按钮操作 */
handleDelete(row) { handleDelete(row) {
const id = row.id; const id = row.id;
this.$modal.confirm('是否确认删除装册编号为"' + id + '"的数据项?').then(function() { this.$modal
.confirm('是否确认删除装册编号为"' + id + '"的数据项?')
.then(function () {
return deletePackages(id); return deletePackages(id);
}).then(() => { })
.then(() => {
this.getList(); this.getList();
this.$modal.msgSuccess("删除成功"); this.$modal.msgSuccess("删除成功");
}).catch(() => {}); })
.catch(() => {});
}, },
/** 导出按钮操作 */ /** 导出按钮操作 */
handleExport() { handleExport() {
// //
let params = {...this.queryParams}; let params = { ...this.queryParams };
params.pageNo = undefined; params.pageNo = undefined;
params.pageSize = undefined; params.pageSize = undefined;
this.$modal.confirm('是否确认导出所有装册数据项?').then(() => { this.$modal
.confirm("是否确认导出所有装册数据项?")
.then(() => {
this.exportLoading = true; this.exportLoading = true;
return exportPackagesExcel(params); return exportPackagesExcel(params);
}).then(response => { })
this.$download.excel(response, '装册.xls'); .then((response) => {
this.$download.excel(response, "装册.xls");
this.exportLoading = false; this.exportLoading = false;
}).catch(() => {}); })
} .catch(() => {});
} },
handleSelectArchives() {
this.$refs.ArchivesSelect.showFlag = true;
},
onArchivesSelected() {},
},
}; };
</script> </script>
<style scoped>
.barcodeClass {
width: 100px;
height: 100px;
}
</style>

@ -0,0 +1,110 @@
<template>
<el-form
ref="form"
:model="form"
label-width="100px"
style="margin-top: 20px; margin-right: 10px"
>
<el-row>
<el-col :span="12">
<el-form-item label="业务实体:" prop="company">
<el-input v-model="form.company" placeholder="" readonly />
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="库房名称:" prop="depotName">
<el-input v-model="form.depotName" placeholder="" readonly />
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<el-form-item label="档案柜名称:" prop="cabinetName">
<el-input v-model="form.cabinetName" placeholder="" readonly />
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="会计年份:" prop="year">
<el-input v-model="form.year" placeholder="" readonly />
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<el-form-item label="会计月份:" prop="period">
<el-input v-model="form.period" placeholder="" readonly />
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="全宗号:" prop="caseNum">
<el-input v-model="form.caseNum" placeholder="" readonly />
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<el-form-item label="目录号:" prop="catalogNum">
<el-input v-model="form.catalogNum" placeholder="" readonly />
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="案卷号:" prop="filesNum">
<el-input v-model="form.filesNum" placeholder="" readonly />
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<el-form-item label="关联号:" prop="flowId">
<el-input v-model="form.flowId" placeholder="" readonly />
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="装册时间:" prop="packageTime">
<el-input v-model="form.packageTime" placeholder="" readonly />
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<el-form-item label="装册数量:" prop="packageNum">
<el-input v-model="form.packageNum" placeholder="" readonly />
</el-form-item>
</el-col>
</el-row>
<el-form-item label="备注:" prop="remark">
<el-input v-model="form.remark" type="textarea" placeholder="" readonly />
</el-form-item>
</el-form>
</template>
<script>
import { getCodeValueo } from "@/api/login";
export default {
name: "info",
components: {},
data() {
return {
form: {},
};
},
created() {
console.log(location);
this.getCodeValueo();
},
methods: {
getCodeValueo() {
// const params = window.location.search.substring(1);
const params = new URLSearchParams(location.search);
const name = params.get("codeValue");
console.log(name);
getCodeValueo({
codeValue: name,
}).then((response) => {
this.form = response.data;
});
},
},
};
</script>
<style lang="scss" scoped></style>
Loading…
Cancel
Save