|
|
@ -1,16 +1,34 @@
|
|
|
|
<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
|
|
|
|
|
|
|
|
: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-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>
|
|
|
|
<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-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>
|
|
|
@ -18,77 +36,161 @@
|
|
|
|
<!-- 操作工具栏 -->
|
|
|
|
<!-- 操作工具栏 -->
|
|
|
|
<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="['accounting:voucher-details:create']">新增</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>
|
|
|
|
<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="['accounting:voucher-details:export']">导出</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>
|
|
|
|
</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="lineNum" />
|
|
|
|
<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="subjectCode" />
|
|
|
|
<el-table-column label="科目名称" align="center" prop="subjectName" />
|
|
|
|
<el-table-column label="科目名称" align="center" prop="subjectName" />
|
|
|
|
<el-table-column label="辅助核算" align="center" prop="assistCheck" />
|
|
|
|
<el-table-column label="辅助核算" align="center" prop="assistCheck" />
|
|
|
|
<el-table-column label="借方金额" align="center" prop="debitMoney" />
|
|
|
|
<el-table-column label="借方金额" align="center" prop="debitMoney" />
|
|
|
|
<el-table-column label="贷方金额" align="center" prop="creditorMoney" />
|
|
|
|
<el-table-column label="贷方金额" align="center" prop="creditorMoney" />
|
|
|
|
<el-table-column label="凭证号" align="center" prop="voucherNum" />
|
|
|
|
<el-table-column label="凭证号" align="center" prop="voucherNum" />
|
|
|
|
|
|
|
|
<el-table-column label="摘要" align="center" prop="digest" />
|
|
|
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
|
|
|
<el-table-column label="制单人" align="center" prop="createBy" />
|
|
|
|
|
|
|
|
<el-table-column
|
|
|
|
|
|
|
|
label="创建日期"
|
|
|
|
|
|
|
|
align="center"
|
|
|
|
|
|
|
|
prop="createTime"
|
|
|
|
|
|
|
|
width="180px"
|
|
|
|
|
|
|
|
>
|
|
|
|
<template v-slot="scope">
|
|
|
|
<template v-slot="scope">
|
|
|
|
<el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)"
|
|
|
|
<span>{{ parseTime(scope.row.createTime) }}</span>
|
|
|
|
v-hasPermi="['accounting:voucher-details:update']">修改</el-button>
|
|
|
|
</template>
|
|
|
|
<el-button size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)"
|
|
|
|
</el-table-column>
|
|
|
|
v-hasPermi="['accounting:voucher-details:delete']">删除</el-button>
|
|
|
|
<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
|
|
|
|
|
|
|
|
>
|
|
|
|
</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"
|
|
|
|
|
|
|
|
: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-form-item label="条目顺序号" prop="lineNum">
|
|
|
|
<el-input v-model="form.lineNum" placeholder="请输入条目顺序号" />
|
|
|
|
<el-input v-model="form.lineNum" placeholder="请输入条目顺序号" />
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item label="制单人" prop="createBy">
|
|
|
|
</el-col>
|
|
|
|
<el-input v-model="form.createBy" placeholder="请输入制单人" />
|
|
|
|
<el-col :span="8">
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
<el-form-item label="摘要" prop="digest">
|
|
|
|
<el-form-item label="摘要" prop="digest">
|
|
|
|
<el-input v-model="form.digest" placeholder="请输入摘要" />
|
|
|
|
<el-input v-model="form.digest" placeholder="请输入摘要" />
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
<el-col :span="8">
|
|
|
|
<el-form-item label="科目编码" prop="subjectCode">
|
|
|
|
<el-form-item label="科目编码" prop="subjectCode">
|
|
|
|
<el-input v-model="form.subjectCode" placeholder="请输入科目编码" />
|
|
|
|
<el-input
|
|
|
|
|
|
|
|
v-model="form.subjectCode"
|
|
|
|
|
|
|
|
placeholder="请输入科目编码"
|
|
|
|
|
|
|
|
/>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
<el-row>
|
|
|
|
|
|
|
|
<el-col :span="8">
|
|
|
|
<el-form-item label="科目名称" prop="subjectName">
|
|
|
|
<el-form-item label="科目名称" prop="subjectName">
|
|
|
|
<el-input v-model="form.subjectName" placeholder="请输入科目名称" />
|
|
|
|
<el-input
|
|
|
|
|
|
|
|
v-model="form.subjectName"
|
|
|
|
|
|
|
|
placeholder="请输入科目名称"
|
|
|
|
|
|
|
|
/>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
<el-col :span="8">
|
|
|
|
<el-form-item label="辅助核算" prop="assistCheck">
|
|
|
|
<el-form-item label="辅助核算" prop="assistCheck">
|
|
|
|
<el-input v-model="form.assistCheck" placeholder="请输入辅助核算" />
|
|
|
|
<el-input
|
|
|
|
|
|
|
|
v-model="form.assistCheck"
|
|
|
|
|
|
|
|
placeholder="请输入辅助核算"
|
|
|
|
|
|
|
|
/>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
<el-col :span="8">
|
|
|
|
<el-form-item label="借方金额" prop="debitMoney">
|
|
|
|
<el-form-item label="借方金额" prop="debitMoney">
|
|
|
|
<el-input v-model="form.debitMoney" placeholder="请输入借方金额" />
|
|
|
|
<el-input
|
|
|
|
|
|
|
|
v-model="form.debitMoney"
|
|
|
|
|
|
|
|
placeholder="请输入借方金额"
|
|
|
|
|
|
|
|
/>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
<el-row>
|
|
|
|
|
|
|
|
<el-col :span="8">
|
|
|
|
<el-form-item label="贷方金额" prop="creditorMoney">
|
|
|
|
<el-form-item label="贷方金额" prop="creditorMoney">
|
|
|
|
<el-input v-model="form.creditorMoney" placeholder="请输入贷方金额" />
|
|
|
|
<el-input
|
|
|
|
|
|
|
|
v-model="form.creditorMoney"
|
|
|
|
|
|
|
|
placeholder="请输入贷方金额"
|
|
|
|
|
|
|
|
/>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
<el-col :span="8">
|
|
|
|
<el-form-item label="凭证号" prop="voucherNum">
|
|
|
|
<el-form-item label="凭证号" prop="voucherNum">
|
|
|
|
<el-input v-model="form.voucherNum" placeholder="请输入凭证号" />
|
|
|
|
<el-input v-model="form.voucherNum" placeholder="请输入凭证号" />
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
</el-row>
|
|
|
|
</el-form>
|
|
|
|
</el-form>
|
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
|
<el-button type="primary" @click="submitForm">确 定</el-button>
|
|
|
|
<el-button type="primary" @click="submitForm">确 定</el-button>
|
|
|
@ -99,12 +201,18 @@
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
<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 {
|
|
|
|
export default {
|
|
|
|
name: "VoucherDetails",
|
|
|
|
name: "VoucherDetails",
|
|
|
|
components: {
|
|
|
|
components: {},
|
|
|
|
},
|
|
|
|
|
|
|
|
data() {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
// 遮罩层
|
|
|
|
// 遮罩层
|
|
|
@ -145,9 +253,17 @@ export default {
|
|
|
|
form: {},
|
|
|
|
form: {},
|
|
|
|
// 表单校验
|
|
|
|
// 表单校验
|
|
|
|
rules: {
|
|
|
|
rules: {
|
|
|
|
voucherId: [{ required: true, message: "凭证id,一个凭证对应多个凭证详情不能为空", trigger: "blur" }],
|
|
|
|
voucherId: [
|
|
|
|
voucherNum: [{ required: true, message: "凭证号不能为空", trigger: "blur" }],
|
|
|
|
{
|
|
|
|
}
|
|
|
|
required: true,
|
|
|
|
|
|
|
|
message: "凭证id,一个凭证对应多个凭证详情不能为空",
|
|
|
|
|
|
|
|
trigger: "blur",
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
voucherNum: [
|
|
|
|
|
|
|
|
{ required: true, message: "凭证号不能为空", trigger: "blur" },
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
},
|
|
|
|
};
|
|
|
|
};
|
|
|
|
},
|
|
|
|
},
|
|
|
|
created() {
|
|
|
|
created() {
|
|
|
@ -158,7 +274,7 @@ export default {
|
|
|
|
getList() {
|
|
|
|
getList() {
|
|
|
|
this.loading = true;
|
|
|
|
this.loading = true;
|
|
|
|
// 执行查询
|
|
|
|
// 执行查询
|
|
|
|
getVoucherDetailsPage(this.queryParams).then(response => {
|
|
|
|
getVoucherDetailsPage(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;
|
|
|
@ -210,7 +326,7 @@ export default {
|
|
|
|
handleUpdate(row) {
|
|
|
|
handleUpdate(row) {
|
|
|
|
this.reset();
|
|
|
|
this.reset();
|
|
|
|
const id = row.id;
|
|
|
|
const id = row.id;
|
|
|
|
getVoucherDetails(id).then(response => {
|
|
|
|
getVoucherDetails(id).then((response) => {
|
|
|
|
this.form = response.data;
|
|
|
|
this.form = response.data;
|
|
|
|
this.open = true;
|
|
|
|
this.open = true;
|
|
|
|
this.title = "修改凭证详情";
|
|
|
|
this.title = "修改凭证详情";
|
|
|
@ -218,13 +334,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) {
|
|
|
|
updateVoucherDetails(this.form).then(response => {
|
|
|
|
updateVoucherDetails(this.form).then((response) => {
|
|
|
|
this.$modal.msgSuccess("修改成功");
|
|
|
|
this.$modal.msgSuccess("修改成功");
|
|
|
|
this.open = false;
|
|
|
|
this.open = false;
|
|
|
|
this.getList();
|
|
|
|
this.getList();
|
|
|
@ -232,7 +348,7 @@ export default {
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// 添加的提交
|
|
|
|
// 添加的提交
|
|
|
|
createVoucherDetails(this.form).then(response => {
|
|
|
|
createVoucherDetails(this.form).then((response) => {
|
|
|
|
this.$modal.msgSuccess("新增成功");
|
|
|
|
this.$modal.msgSuccess("新增成功");
|
|
|
|
this.open = false;
|
|
|
|
this.open = false;
|
|
|
|
this.getList();
|
|
|
|
this.getList();
|
|
|
@ -242,12 +358,16 @@ 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 deleteVoucherDetails(id);
|
|
|
|
return deleteVoucherDetails(id);
|
|
|
|
}).then(() => {
|
|
|
|
})
|
|
|
|
|
|
|
|
.then(() => {
|
|
|
|
this.getList();
|
|
|
|
this.getList();
|
|
|
|
this.$modal.msgSuccess("删除成功");
|
|
|
|
this.$modal.msgSuccess("删除成功");
|
|
|
|
}).catch(() => {});
|
|
|
|
})
|
|
|
|
|
|
|
|
.catch(() => {});
|
|
|
|
},
|
|
|
|
},
|
|
|
|
/** 导出按钮操作 */
|
|
|
|
/** 导出按钮操作 */
|
|
|
|
handleExport() {
|
|
|
|
handleExport() {
|
|
|
@ -255,14 +375,18 @@ export default {
|
|
|
|
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 exportVoucherDetailsExcel(params);
|
|
|
|
return exportVoucherDetailsExcel(params);
|
|
|
|
}).then(response => {
|
|
|
|
})
|
|
|
|
this.$download.excel(response, '凭证详情.xls');
|
|
|
|
.then((response) => {
|
|
|
|
|
|
|
|
this.$download.excel(response, "凭证详情.xls");
|
|
|
|
this.exportLoading = false;
|
|
|
|
this.exportLoading = false;
|
|
|
|
}).catch(() => {});
|
|
|
|
})
|
|
|
|
}
|
|
|
|
.catch(() => {});
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
},
|
|
|
|
};
|
|
|
|
};
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
|