Merge remote-tracking branch 'origin/main'

main
JiilingLee 1 year ago
commit 000c565ae3

@ -0,0 +1,54 @@
import request from '@/utils/request'
// 创建银行回单
export function createBankSlip(data) {
return request({
url: '/archives/bank-slip/create',
method: 'post',
data: data
})
}
// 更新银行回单
export function updateBankSlip(data) {
return request({
url: '/archives/bank-slip/update',
method: 'put',
data: data
})
}
// 删除银行回单
export function deleteBankSlip(id) {
return request({
url: '/archives/bank-slip/delete?id=' + id,
method: 'delete'
})
}
// 获得银行回单
export function getBankSlip(id) {
return request({
url: '/archives/bank-slip/get?id=' + id,
method: 'get'
})
}
// 获得银行回单分页
export function getBankSlipPage(query) {
return request({
url: '/archives/bank-slip/page',
method: 'get',
params: query
})
}
// 导出银行回单 Excel
export function exportBankSlipExcel(query) {
return request({
url: '/archives/bank-slip/export-excel',
method: 'get',
params: query,
responseType: 'blob'
})
}

@ -0,0 +1,619 @@
<template>
<div class="app-container">
<!-- 搜索工作栏 -->
<el-form
:model="queryParams"
ref="queryForm"
size="small"
:inline="true"
v-show="showSearch"
label-width="128px"
>
<el-form-item label="回单编号" prop="receiptNum">
<el-input
v-model="queryParams.receiptNum"
placeholder="请输入回单编号"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="OA/ERP流程编号" prop="flowCode">
<el-input
v-model="queryParams.flowCode"
placeholder="请输入OA/ERP流程编号"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="交易日期" prop="tradTime">
<el-date-picker
v-model="queryParams.tradTime"
style="width: 240px"
value-format="yyyy-MM-dd HH:mm:ss"
type="daterange"
range-separator="-"
start-placeholder="开始日期"
end-placeholder="结束日期"
:default-time="['00:00:00', '23:59:59']"
/>
</el-form-item>
<el-form-item label="借/贷" prop="debitOrCredit">
<el-input
v-model="queryParams.debitOrCredit"
placeholder="请输入借/贷"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="我方账户" prop="myCompany">
<el-input
v-model="queryParams.myCompany"
placeholder="请输入我方账户"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="我方账号" prop="myNum">
<el-input
v-model="queryParams.myNum"
placeholder="请输入我方账号"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="对方账户" prop="adverseCompany">
<el-input
v-model="queryParams.adverseCompany"
placeholder="请输入对方账户"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="对方账号" prop="adverseNum">
<el-input
v-model="queryParams.adverseNum"
placeholder="请输入对方账号"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="银行交易流水" prop="serialNum">
<el-input
v-model="queryParams.serialNum"
placeholder="请输入银行交易流水"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="凭证id" prop="voucherId">
<el-input
v-model="queryParams.voucherId"
placeholder="请输入凭证id"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="银行" prop="bank">
<el-input
v-model="queryParams.bank"
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 icon="el-icon-refresh" @click="resetQuery"></el-button>
</el-form-item>
</el-form>
<!-- 操作工具栏 -->
<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="['archives:bank-slip: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="['archives:bank-slip:export']"
>导出</el-button
>
</el-col>
<right-toolbar
:showSearch.sync="showSearch"
@queryTable="getList"
></right-toolbar>
</el-row>
<!-- 列表 -->
<el-table v-loading="loading" :data="list">
<el-table-column label="凭证id" align="center" prop="voucherId" />
<el-table-column label="OA/ERP流程编号" align="center" prop="flowCode" />
<el-table-column
label="交易日期"
align="center"
prop="tradTime"
width="180"
>
<template v-slot="scope">
<span>{{ parseTime(scope.row.tradTime) }}</span>
</template>
</el-table-column>
<el-table-column label="银行" align="center" prop="bank" />
<el-table-column label="交易类型" align="center" prop="type" />
<el-table-column label="我方账户" align="center" prop="myCompany" />
<el-table-column label="我方账号" align="center" prop="myNum" />
<el-table-column label="对方账户" align="center" prop="adverseCompany" />
<el-table-column label="对方账号" align="center" prop="adverseNum" />
<el-table-column label="业务实体" align="center" prop="company" />
<el-table-column label="所属部门" align="center" prop="dept" />
<el-table-column label="借/贷" align="center" prop="debitOrCredit" />
<el-table-column label="币种" align="center" prop="currency" />
<el-table-column label="状态" align="center" prop="status" />
<el-table-column label="交易流水号" align="center" prop="serialNum" />
<el-table-column label="借方金额" align="center" prop="debitMoney" />
<el-table-column label="交易金额" align="center" prop="tradMoney" />
<el-table-column label="贷方金额" align="center" prop="creditMoney" />
<el-table-column label="余额" align="center" prop="balance" />
<el-table-column label="业务单号" align="center" prop="busNum" />
<el-table-column label="回单编号" align="center" prop="receiptNum" />
<el-table-column label="摘要" align="center" prop="digest" />
<el-table-column label="扩展摘要" align="center" prop="digestExtend" />
<el-table-column label="业务摘要" align="center" prop="businessDigest" />
<el-table-column label="用途" align="center" prop="purpose" />
<el-table-column label="业务编号" align="center" prop="businessNum" />
<el-table-column label="业务名称" align="center" prop="businessName" />
<el-table-column label="票据号" align="center" prop="billNum" />
<el-table-column
label="商务支付订单号"
align="center"
prop="businessOrder"
/>
<el-table-column label="企业识别码" align="center" prop="headingCode" />
<el-table-column label="对方银行码" align="center" prop="bankCode" />
<el-table-column label="对方开户地址" align="center" prop="bankSite" />
<el-table-column label="对方开户地区" align="center" prop="bankRegion" />
<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="encrypt" />
<el-table-column label="归档状态" align="center" prop="archiveState" />
<el-table-column label="密码" align="center" prop="password" />
<el-table-column
label="操作"
align="center"
class-name="small-padding fixed-width"
>
<template v-slot="scope">
<el-button
size="mini"
type="text"
icon="el-icon-edit"
@click="handleUpdate(scope.row)"
v-hasPermi="['archives:bank-slip:update']"
>修改</el-button
>
<el-button
size="mini"
type="text"
icon="el-icon-delete"
@click="handleDelete(scope.row)"
v-hasPermi="['archives:bank-slip: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"
/>
<!-- 对话框(添加 / 修改) -->
<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="凭证id" prop="voucherId">
<el-input v-model="form.voucherId" placeholder="请输入凭证id" />
</el-form-item>
<el-form-item label="OA/ERP流程编号" prop="flowCode">
<el-input
v-model="form.flowCode"
placeholder="请输入OA/ERP流程编号"
/>
</el-form-item>
<el-form-item label="交易日期" prop="tradTime">
<el-date-picker
clearable
v-model="form.tradTime"
type="date"
value-format="timestamp"
placeholder="选择交易日期"
/>
</el-form-item>
<el-form-item label="银行" prop="bank">
<el-input v-model="form.bank" placeholder="请输入银行" />
</el-form-item>
<el-form-item label="交易类型" prop="type">
<el-select v-model="form.type" placeholder="请选择交易类型">
<el-option label="请选择字典生成" value="" />
</el-select>
</el-form-item>
<el-form-item label="我方账户" prop="myCompany">
<el-input v-model="form.myCompany" placeholder="请输入我方账户" />
</el-form-item>
<el-form-item label="我方账号" prop="myNum">
<el-input v-model="form.myNum" placeholder="请输入我方账号" />
</el-form-item>
<el-form-item label="对方账户" prop="adverseCompany">
<el-input
v-model="form.adverseCompany"
placeholder="请输入对方账户"
/>
</el-form-item>
<el-form-item label="对方账号" prop="adverseNum">
<el-input v-model="form.adverseNum" placeholder="请输入对方账号" />
</el-form-item>
<el-form-item label="业务实体" prop="company">
<el-input v-model="form.company" placeholder="请输入业务实体" />
</el-form-item>
<el-form-item label="所属部门" prop="dept">
<el-input v-model="form.dept" placeholder="请输入所属部门" />
</el-form-item>
<el-form-item label="借/贷" prop="debitOrCredit">
<el-input v-model="form.debitOrCredit" placeholder="请输入借/贷" />
</el-form-item>
<el-form-item label="币种" prop="currency">
<el-input v-model="form.currency" placeholder="请输入币种" />
</el-form-item>
<el-form-item label="状态" prop="status">
<el-radio-group v-model="form.status">
<el-radio label="1">请选择字典生成</el-radio>
</el-radio-group>
</el-form-item>
<el-form-item label="交易流水号" prop="serialNum">
<el-input v-model="form.serialNum" 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="tradMoney">
<el-input v-model="form.tradMoney" placeholder="请输入交易金额" />
</el-form-item>
<el-form-item label="贷方金额" prop="creditMoney">
<el-input v-model="form.creditMoney" placeholder="请输入贷方金额" />
</el-form-item>
<el-form-item label="余额" prop="balance">
<el-input v-model="form.balance" placeholder="请输入余额" />
</el-form-item>
<el-form-item label="业务单号" prop="busNum">
<el-input v-model="form.busNum" placeholder="请输入业务单号" />
</el-form-item>
<el-form-item label="回单编号" prop="receiptNum">
<el-input v-model="form.receiptNum" 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="digestExtend">
<el-input v-model="form.digestExtend" placeholder="请输入扩展摘要" />
</el-form-item>
<el-form-item label="业务摘要" prop="businessDigest">
<el-input
v-model="form.businessDigest"
placeholder="请输入业务摘要"
/>
</el-form-item>
<el-form-item label="用途" prop="purpose">
<el-input v-model="form.purpose" placeholder="请输入用途" />
</el-form-item>
<el-form-item label="业务编号" prop="businessNum">
<el-input v-model="form.businessNum" placeholder="请输入业务编号" />
</el-form-item>
<el-form-item label="业务名称" prop="businessName">
<el-input v-model="form.businessName" placeholder="请输入业务名称" />
</el-form-item>
<el-form-item label="票据号" prop="billNum">
<el-input v-model="form.billNum" placeholder="请输入票据号" />
</el-form-item>
<el-form-item label="商务支付订单号" prop="businessOrder">
<el-input
v-model="form.businessOrder"
placeholder="请输入商务支付订单号"
/>
</el-form-item>
<el-form-item label="企业识别码" prop="headingCode">
<el-input v-model="form.headingCode" placeholder="请输入企业识别码" />
</el-form-item>
<el-form-item label="对方银行码" prop="bankCode">
<el-input v-model="form.bankCode" placeholder="请输入对方银行码" />
</el-form-item>
<el-form-item label="对方开户地址" prop="bankSite">
<el-input v-model="form.bankSite" placeholder="请输入对方开户地址" />
</el-form-item>
<el-form-item label="对方开户地区" prop="bankRegion">
<el-input
v-model="form.bankRegion"
placeholder="请输入对方开户地区"
/>
</el-form-item>
<el-form-item label="加密" prop="encrypt">
<el-input v-model="form.encrypt" placeholder="请输入加密" />
</el-form-item>
<el-form-item label="归档状态" prop="archiveState">
<el-input v-model="form.archiveState" placeholder="请输入归档状态" />
</el-form-item>
<el-form-item label="密码" prop="password">
<el-input v-model="form.password" placeholder="请输入密码" />
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button type="primary" @click="submitForm"> </el-button>
<el-button @click="cancel"> </el-button>
</div>
</el-dialog>
</div>
</template>
<script>
import {
createBankSlip,
updateBankSlip,
deleteBankSlip,
getBankSlip,
getBankSlipPage,
exportBankSlipExcel,
} from "@/api/accounting/bankSlip";
export default {
name: "BankSlip",
components: {},
data() {
return {
//
loading: true,
//
exportLoading: false,
//
showSearch: true,
//
total: 0,
//
list: [],
//
title: "",
//
open: false,
//
queryParams: {
pageNo: 1,
pageSize: 10,
voucherId: null,
flowCode: null,
tradTime: [],
bank: null,
type: null,
myCompany: null,
myNum: null,
adverseCompany: null,
adverseNum: null,
companyId: null,
company: null,
deptId: null,
dept: null,
debitOrCredit: null,
currency: null,
status: null,
serialNum: null,
debitMoney: null,
tradMoney: null,
creditMoney: null,
balance: null,
busNum: null,
receiptNum: null,
digest: null,
digestExtend: null,
businessDigest: null,
theOther: null,
purpose: null,
businessNum: null,
businessName: null,
billNum: null,
businessOrder: null,
headingCode: null,
bankCode: null,
bankSite: null,
bankRegion: null,
createTime: [],
encrypt: null,
archiveId: null,
archiveState: null,
password: null,
},
//
form: {},
//
rules: {},
};
},
created() {
this.getList();
},
methods: {
/** 查询列表 */
getList() {
this.loading = true;
//
getBankSlipPage(this.queryParams).then((response) => {
this.list = response.data.list;
this.total = response.data.total;
this.loading = false;
});
},
/** 取消按钮 */
cancel() {
this.open = false;
this.reset();
},
/** 表单重置 */
reset() {
this.form = {
id: undefined,
voucherId: undefined,
flowCode: undefined,
tradTime: undefined,
bank: undefined,
type: undefined,
myCompany: undefined,
myNum: undefined,
adverseCompany: undefined,
adverseNum: undefined,
companyId: undefined,
company: undefined,
deptId: undefined,
dept: undefined,
debitOrCredit: undefined,
currency: undefined,
status: undefined,
serialNum: undefined,
debitMoney: undefined,
tradMoney: undefined,
creditMoney: undefined,
balance: undefined,
busNum: undefined,
receiptNum: undefined,
digest: undefined,
digestExtend: undefined,
businessDigest: undefined,
theOther: undefined,
purpose: undefined,
businessNum: undefined,
businessName: undefined,
billNum: undefined,
businessOrder: undefined,
headingCode: undefined,
bankCode: undefined,
bankSite: undefined,
bankRegion: undefined,
encrypt: undefined,
archiveId: undefined,
archiveState: undefined,
password: undefined,
};
this.resetForm("form");
},
/** 搜索按钮操作 */
handleQuery() {
this.queryParams.pageNo = 1;
this.getList();
},
/** 重置按钮操作 */
resetQuery() {
this.resetForm("queryForm");
this.handleQuery();
},
/** 新增按钮操作 */
handleAdd() {
this.reset();
this.open = true;
this.title = "添加银行回单";
},
/** 修改按钮操作 */
handleUpdate(row) {
this.reset();
const id = row.id;
getBankSlip(id).then((response) => {
this.form = response.data;
this.open = true;
this.title = "修改银行回单";
});
},
/** 提交按钮 */
submitForm() {
this.$refs["form"].validate((valid) => {
if (!valid) {
return;
}
//
if (this.form.id != null) {
updateBankSlip(this.form).then((response) => {
this.$modal.msgSuccess("修改成功");
this.open = false;
this.getList();
});
return;
}
//
createBankSlip(this.form).then((response) => {
this.$modal.msgSuccess("新增成功");
this.open = false;
this.getList();
});
});
},
/** 删除按钮操作 */
handleDelete(row) {
const id = row.id;
this.$modal
.confirm('是否确认删除银行回单编号为"' + id + '"的数据项?')
.then(function () {
return deleteBankSlip(id);
})
.then(() => {
this.getList();
this.$modal.msgSuccess("删除成功");
})
.catch(() => {});
},
/** 导出按钮操作 */
handleExport() {
//
let params = { ...this.queryParams };
params.pageNo = undefined;
params.pageSize = undefined;
this.$modal
.confirm("是否确认导出所有银行回单数据项?")
.then(() => {
this.exportLoading = true;
return exportBankSlipExcel(params);
})
.then((response) => {
this.$download.excel(response, "银行回单.xls");
this.exportLoading = false;
})
.catch(() => {});
},
},
};
</script>

@ -717,9 +717,9 @@
<el-select v-model="form.voucherId" placeholder="请选择会计凭证">
<el-option
v-for="item in kjpzOptions"
:key="item.recordId"
:key="item.id"
:label="item.voucherNum"
:value="item.flowId"
:value="item.id"
>
</el-option>
</el-select>
@ -1122,10 +1122,10 @@ export default {
this.ids = selection.map((item) => item.id);
if (selection.length == 1) {
this.multiple = false;
this.form = selection[0];
} else {
this.multiple = true;
}
this.form = selection[0];
},
/** 新增按钮操作 */
handleAdd() {

Loading…
Cancel
Save