固定操作栏

main
mo 1 year ago
parent e81a6aaeb0
commit 22ce8a34b9

@ -100,6 +100,8 @@
label="操作"
align="center"
class-name="small-padding fixed-width"
fixed="right"
width="180px"
>
<template v-slot="scope">
<el-button

@ -224,7 +224,8 @@
label="操作"
align="center"
class-name="small-padding fixed-width"
width="180"
fixed="right"
width="180px"
>
<template v-slot="scope">
<el-button

@ -104,6 +104,8 @@
label="操作"
align="center"
class-name="small-padding fixed-width"
fixed="right"
width="180px"
>
<template v-slot="scope">
<el-button

@ -101,6 +101,8 @@
label="操作"
align="center"
class-name="small-padding fixed-width"
fixed="right"
width="180px"
>
<template v-slot="scope">
<el-button

@ -287,6 +287,8 @@
label="操作"
align="center"
class-name="small-padding fixed-width"
fixed="right"
width="180px"
>
<template v-slot="scope">
<el-button

@ -72,7 +72,7 @@
icon="el-icon-download"
size="mini"
@click="handleDownloadData"
>下载元数据</el-button
>下载元数据</el-button
>
</el-col>
<right-toolbar
@ -133,6 +133,8 @@
label="操作"
align="center"
class-name="small-padding fixed-width"
fixed="right"
width="180px"
>
<template v-slot="scope">
<el-button

@ -119,6 +119,8 @@
<el-table-column
label="操作"
align="center"
fixed="right"
width="180px"
class-name="small-padding fixed-width"
>
<template v-slot="scope">

@ -133,6 +133,8 @@
label="操作"
align="center"
class-name="small-padding fixed-width"
fixed="right"
width="180px"
>
<template v-slot="scope">
<el-button

@ -1,16 +1,34 @@
<template>
<div class="app-container">
<!-- 搜索工作栏 -->
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
<el-form
:model="queryParams"
ref="queryForm"
size="small"
:inline="true"
v-show="showSearch"
label-width="68px"
>
<el-form-item label="凭证号" prop="voucherNum">
<el-input
v-model="queryParams.voucherNum"
placeholder="请输入凭证号"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="摘要" prop="digest">
<el-input v-model="queryParams.digest" placeholder="请输入摘要" clearable @keyup.enter.native="handleQuery"/>
<el-input
v-model="queryParams.digest"
placeholder="请输入摘要"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="凭证号" prop="voucherNum">
<el-input v-model="queryParams.voucherNum" placeholder="请输入凭证号" clearable @keyup.enter.native="handleQuery"/>
</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-form-item>
</el-form>
@ -18,77 +36,161 @@
<!-- 操作工具栏 -->
<el-row :gutter="10" class="mb8">
<el-col :span="1.5">
<el-button type="primary" plain icon="el-icon-plus" size="mini" @click="handleAdd"
v-hasPermi="['accounting:voucher-details:create']">新增</el-button>
<el-button
type="primary"
plain
icon="el-icon-plus"
size="mini"
@click="handleAdd"
v-hasPermi="['accounting:voucher-details:create']"
>新增</el-button
>
</el-col>
<el-col :span="1.5">
<el-button type="warning" plain icon="el-icon-download" size="mini" @click="handleExport" :loading="exportLoading"
v-hasPermi="['accounting:voucher-details:export']">导出</el-button>
<el-button
type="warning"
plain
icon="el-icon-download"
size="mini"
@click="handleExport"
:loading="exportLoading"
v-hasPermi="['accounting:voucher-details:export']"
>导出</el-button
>
</el-col>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
<right-toolbar
:showSearch.sync="showSearch"
@queryTable="getList"
></right-toolbar>
</el-row>
<!-- 列表 -->
<el-table v-loading="loading" :data="list">
<el-table-column label="主键" align="center" prop="id" />
<el-table-column label="条目顺序号" align="center" prop="lineNum" />
<el-table-column label="制单人" align="center" prop="createBy" />
<el-table-column label="创建日期" align="center" prop="createTime" width="180">
<template v-slot="scope">
<span>{{ parseTime(scope.row.createTime) }}</span>
</template>
</el-table-column>
<el-table-column label="摘要" align="center" prop="digest" />
<el-table-column label="科目编码" align="center" prop="subjectCode" />
<el-table-column label="科目名称" align="center" prop="subjectName" />
<el-table-column label="辅助核算" align="center" prop="assistCheck" />
<el-table-column label="借方金额" align="center" prop="debitMoney" />
<el-table-column label="贷方金额" align="center" prop="creditorMoney" />
<el-table-column label="凭证号" align="center" prop="voucherNum" />
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<el-table-column label="摘要" align="center" prop="digest" />
<el-table-column label="制单人" align="center" prop="createBy" />
<el-table-column
label="创建日期"
align="center"
prop="createTime"
width="180px"
>
<template v-slot="scope">
<span>{{ parseTime(scope.row.createTime) }}</span>
</template>
</el-table-column>
<el-table-column
label="操作"
align="center"
class-name="small-padding fixed-width"
fixed="right"
width="180px"
>
<template v-slot="scope">
<el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)"
v-hasPermi="['accounting:voucher-details:update']">修改</el-button>
<el-button size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)"
v-hasPermi="['accounting:voucher-details:delete']">删除</el-button>
<el-button
size="mini"
type="text"
icon="el-icon-edit"
@click="handleUpdate(scope.row)"
v-hasPermi="['accounting:voucher-details:update']"
>修改</el-button
>
<el-button
size="mini"
type="text"
icon="el-icon-delete"
@click="handleDelete(scope.row)"
v-hasPermi="['accounting:voucher-details:delete']"
>删除</el-button
>
</template>
</el-table-column>
</el-table>
<!-- 分页组件 -->
<pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNo" :limit.sync="queryParams.pageSize"
@pagination="getList"/>
<pagination
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-form ref="form" :model="form" :rules="rules" label-width="80px">
<el-form-item label="条目顺序号" prop="lineNum">
<el-input v-model="form.lineNum" 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="digest">
<el-input v-model="form.digest" placeholder="请输入摘要" />
</el-form-item>
<el-form-item label="科目编码" prop="subjectCode">
<el-input v-model="form.subjectCode" placeholder="请输入科目编码" />
</el-form-item>
<el-form-item label="科目名称" prop="subjectName">
<el-input v-model="form.subjectName" placeholder="请输入科目名称" />
</el-form-item>
<el-form-item label="辅助核算" prop="assistCheck">
<el-input v-model="form.assistCheck" placeholder="请输入辅助核算" />
</el-form-item>
<el-form-item label="借方金额" prop="debitMoney">
<el-input v-model="form.debitMoney" placeholder="请输入借方金额" />
</el-form-item>
<el-form-item label="贷方金额" prop="creditorMoney">
<el-input v-model="form.creditorMoney" placeholder="请输入贷方金额" />
</el-form-item>
<el-form-item label="凭证号" prop="voucherNum">
<el-input v-model="form.voucherNum" placeholder="请输入凭证号" />
</el-form-item>
<el-dialog
:title="title"
:visible.sync="open"
width="1000px"
v-dialogDrag
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="lineNum">
<el-input v-model="form.lineNum" placeholder="请输入条目顺序号" />
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="摘要" prop="digest">
<el-input v-model="form.digest" placeholder="请输入摘要" />
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="科目编码" prop="subjectCode">
<el-input
v-model="form.subjectCode"
placeholder="请输入科目编码"
/>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="8">
<el-form-item label="科目名称" prop="subjectName">
<el-input
v-model="form.subjectName"
placeholder="请输入科目名称"
/>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="辅助核算" prop="assistCheck">
<el-input
v-model="form.assistCheck"
placeholder="请输入辅助核算"
/>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="借方金额" prop="debitMoney">
<el-input
v-model="form.debitMoney"
placeholder="请输入借方金额"
/>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="8">
<el-form-item label="贷方金额" prop="creditorMoney">
<el-input
v-model="form.creditorMoney"
placeholder="请输入贷方金额"
/>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="凭证号" prop="voucherNum">
<el-input v-model="form.voucherNum" placeholder="请输入凭证号" />
</el-form-item>
</el-col>
</el-row>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button type="primary" @click="submitForm"> </el-button>
@ -99,12 +201,18 @@
</template>
<script>
import { createVoucherDetails, updateVoucherDetails, deleteVoucherDetails, getVoucherDetails, getVoucherDetailsPage, exportVoucherDetailsExcel } from "@/api/accounting/voucherDetails";
import {
createVoucherDetails,
updateVoucherDetails,
deleteVoucherDetails,
getVoucherDetails,
getVoucherDetailsPage,
exportVoucherDetailsExcel,
} from "@/api/accounting/voucherDetails";
export default {
name: "VoucherDetails",
components: {
},
components: {},
data() {
return {
//
@ -145,9 +253,17 @@ export default {
form: {},
//
rules: {
voucherId: [{ required: true, message: "凭证id一个凭证对应多个凭证详情不能为空", trigger: "blur" }],
voucherNum: [{ required: true, message: "凭证号不能为空", trigger: "blur" }],
}
voucherId: [
{
required: true,
message: "凭证id一个凭证对应多个凭证详情不能为空",
trigger: "blur",
},
],
voucherNum: [
{ required: true, message: "凭证号不能为空", trigger: "blur" },
],
},
};
},
created() {
@ -158,7 +274,7 @@ export default {
getList() {
this.loading = true;
//
getVoucherDetailsPage(this.queryParams).then(response => {
getVoucherDetailsPage(this.queryParams).then((response) => {
this.list = response.data.list;
this.total = response.data.total;
this.loading = false;
@ -210,7 +326,7 @@ export default {
handleUpdate(row) {
this.reset();
const id = row.id;
getVoucherDetails(id).then(response => {
getVoucherDetails(id).then((response) => {
this.form = response.data;
this.open = true;
this.title = "修改凭证详情";
@ -218,13 +334,13 @@ export default {
},
/** 提交按钮 */
submitForm() {
this.$refs["form"].validate(valid => {
this.$refs["form"].validate((valid) => {
if (!valid) {
return;
}
//
if (this.form.id != null) {
updateVoucherDetails(this.form).then(response => {
updateVoucherDetails(this.form).then((response) => {
this.$modal.msgSuccess("修改成功");
this.open = false;
this.getList();
@ -232,7 +348,7 @@ export default {
return;
}
//
createVoucherDetails(this.form).then(response => {
createVoucherDetails(this.form).then((response) => {
this.$modal.msgSuccess("新增成功");
this.open = false;
this.getList();
@ -242,27 +358,35 @@ export default {
/** 删除按钮操作 */
handleDelete(row) {
const id = row.id;
this.$modal.confirm('是否确认删除凭证详情编号为"' + id + '"的数据项?').then(function() {
this.$modal
.confirm('是否确认删除凭证详情编号为"' + id + '"的数据项?')
.then(function () {
return deleteVoucherDetails(id);
}).then(() => {
})
.then(() => {
this.getList();
this.$modal.msgSuccess("删除成功");
}).catch(() => {});
})
.catch(() => {});
},
/** 导出按钮操作 */
handleExport() {
//
let params = {...this.queryParams};
let params = { ...this.queryParams };
params.pageNo = undefined;
params.pageSize = undefined;
this.$modal.confirm('是否确认导出所有凭证详情数据项?').then(() => {
this.$modal
.confirm("是否确认导出所有凭证详情数据项?")
.then(() => {
this.exportLoading = true;
return exportVoucherDetailsExcel(params);
}).then(response => {
this.$download.excel(response, '凭证详情.xls');
})
.then((response) => {
this.$download.excel(response, "凭证详情.xls");
this.exportLoading = false;
}).catch(() => {});
}
}
})
.catch(() => {});
},
},
};
</script>

@ -49,14 +49,6 @@
@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 label="全宗号" prop="caseNum">
<el-input
v-model="queryParams.caseNum"
@ -93,22 +85,6 @@
:default-time="['00:00:00', '23:59:59']"
/>
</el-form-item>
<el-form-item label="所属部门" prop="deptName">
<el-input
v-model="queryParams.deptName"
placeholder="请输入所属部门"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="条码值" prop="codeValue">
<el-input
v-model="queryParams.codeValue"
placeholder="请输入条码值"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item>
<el-button type="primary" icon="el-icon-search" @click="handleQuery"
>搜索</el-button
@ -197,6 +173,8 @@
label="操作"
align="center"
class-name="small-padding fixed-width"
fixed="right"
width="180px"
>
<template v-slot="scope">
<el-button
@ -298,7 +276,6 @@
<el-input v-model="form.filesNum" placeholder="" readonly />
</el-form-item>
</el-col>
</el-row>
<!-- <el-form-item label="状态待装册,已装册" prop="status">
<el-radio-group v-model="form.status">
@ -372,7 +349,6 @@ import {
import ArchivesSelect from "@/components/ArchivesSelect/single.vue";
import { listUser } from "@/api/system/user";
export default {
name: "Packages",
components: { ArchivesSelect },
@ -432,7 +408,6 @@ export default {
created() {
this.getList();
this.getUserList();
},
methods: {
//

@ -123,8 +123,9 @@
<el-table-column
label="操作"
align="center"
width="120"
class-name="small-padding fixed-width"
fixed="right"
width="180px"
>
<template v-slot="scope">
<el-button
@ -440,7 +441,7 @@
>
<el-table-column type="selection" width="55" align="center" />
<el-table-column label="报表文件名称" align="center" prop="name" />
<el-table-column label="报表文件" align="center" prop="url" >
<el-table-column label="报表文件" align="center" prop="url">
<template slot-scope="scope">
<el-button type="text" @click="openLink(scope.row.url)">
{{ scope.row.name }}
@ -1444,7 +1445,7 @@ export default {
this.getElectronicConsultationLineList();
} else if (row.fileType == "electronic_other") {
this.getElectronicOtherLineList();
}else if (row.fileType == "accounting_report") {
} else if (row.fileType == "accounting_report") {
this.getAccountingReportPageLineList();
}

@ -148,6 +148,8 @@
label="操作"
align="center"
class-name="small-padding fixed-width"
fixed="right"
width="180px"
>
<template v-slot="scope">
<el-button

@ -129,6 +129,7 @@
align="center"
class-name="small-padding fixed-width"
width="200"
fixed="right"
>
<template v-slot="scope">
<el-button

@ -128,6 +128,8 @@
label="操作"
align="center"
class-name="small-padding fixed-width"
fixed="right"
width="180px"
>
<template v-slot="scope">
<el-button

@ -119,6 +119,8 @@
label="操作"
align="center"
class-name="small-padding fixed-width"
fixed="right"
width="180px"
>
<template v-slot="scope">
<el-button

@ -115,6 +115,8 @@
label="操作"
align="center"
class-name="small-padding fixed-width"
fixed="right"
width="180px"
>
<template v-slot="scope">
<el-button

@ -144,11 +144,12 @@
<span>{{ parseTime(scope.row.createTime) }}</span>
</template>
</el-table-column>
<!-- <el-table-column label="制单人" align="center" prop="createBy" /> -->
<el-table-column
label="操作"
align="center"
class-name="small-padding fixed-width"
fixed="right"
width="180px"
>
<template v-slot="scope">
<el-button

@ -103,13 +103,13 @@
prop="categoryCode"
/>
<!-- <el-table-column label="档案类型父id" align="center" prop="parentId" /> -->
<el-table-column label="类型名称" align="center" prop="typeName" >
<template v-slot="scope">
<dict-tag
:type="DICT_TYPE.ARCHIVES_FILE_TYPE"
:value="scope.row.typeName"
/>
</template>
<el-table-column label="类型名称" align="center" prop="typeName">
<template v-slot="scope">
<dict-tag
:type="DICT_TYPE.ARCHIVES_FILE_TYPE"
:value="scope.row.typeName"
/>
</template>
</el-table-column>
<el-table-column label="目录号" align="center" prop="catalogNumber" />
<el-table-column
@ -143,6 +143,8 @@
label="操作"
align="center"
class-name="small-padding fixed-width"
fixed="right"
width="180px"
>
<template v-slot="scope">
<el-button
@ -213,7 +215,10 @@
</el-col>
<el-col :span="8">
<el-form-item label="目录号" prop="catalogNumber">
<el-input v-model="form.catalogNumber" placeholder="请输入目录号" />
<el-input
v-model="form.catalogNumber"
placeholder="请输入目录号"
/>
</el-form-item>
</el-col>
</el-row>
@ -265,7 +270,6 @@ import {
} from "@/api/setting/fileCategory";
import { listData } from "@/api/system/dict/data";
export default {
name: "FileCategory",
components: {},

@ -114,6 +114,8 @@
label="操作"
align="center"
class-name="small-padding fixed-width"
fixed="right"
width="180px"
>
<template v-slot="scope">
<el-button
@ -171,10 +173,7 @@
</el-col>
<el-col :span="8">
<el-form-item label="全宗号" prop="caseNum">
<el-input
v-model="form.caseNum"
placeholder="请输入全宗号"
/>
<el-input v-model="form.caseNum" placeholder="请输入全宗号" />
</el-form-item>
</el-col>
</el-row>

Loading…
Cancel
Save