银行回单新增元数据下载

main
mo 1 year ago
parent 26cf2b99d3
commit 665cabbba2

@ -52,3 +52,13 @@ export function exportBankSlipExcel(query) {
responseType: 'blob' responseType: 'blob'
}) })
} }
// 下载元数据
export function downloadXml(query) {
return request({
url: '/archives/bank-slip/downloadXml',
method: 'get',
params: query,
responseType: 'blob'
})
}

@ -134,6 +134,17 @@
>导出</el-button >导出</el-button
> >
</el-col> </el-col>
<el-col :span="1.5">
<el-button
type="primary"
plain
icon="el-icon-download"
size="mini"
@click="handleDownloadData"
v-hasPermi="['archives:bank-slip:export']"
>下载元数据</el-button
>
</el-col>
<right-toolbar <right-toolbar
:showSearch.sync="showSearch" :showSearch.sync="showSearch"
@queryTable="getList" @queryTable="getList"
@ -239,150 +250,275 @@
<el-dialog <el-dialog
:title="title" :title="title"
:visible.sync="open" :visible.sync="open"
width="500px" width="1000px"
v-dialogDrag
append-to-body append-to-body
> >
<el-form ref="form" :model="form" :rules="rules" label-width="80px"> <el-form ref="form" :model="form" :rules="rules" label-width="130px">
<el-form-item label="凭证id" prop="voucherId"> <el-row>
<el-input v-model="form.voucherId" placeholder="请输入凭证id" /> <el-col :span="8">
</el-form-item> <el-form-item label="OA/ERP流程编号" prop="flowCode">
<el-form-item label="OA/ERP流程编号" prop="flowCode"> <el-input
<el-input v-model="form.flowCode"
v-model="form.flowCode" placeholder="请输入OA/ERP流程编号"
placeholder="请输入OA/ERP流程编号" />
/> </el-form-item>
</el-form-item> </el-col>
<el-form-item label="交易日期" prop="tradTime"> <el-col :span="8">
<el-date-picker <el-form-item label="交易日期" prop="tradTime">
clearable <el-date-picker
v-model="form.tradTime" clearable
type="date" v-model="form.tradTime"
value-format="timestamp" type="date"
placeholder="选择交易日期" value-format="timestamp"
/> placeholder="选择交易日期"
</el-form-item> />
<el-form-item label="银行" prop="bank"> </el-form-item>
<el-input v-model="form.bank" placeholder="请输入银行" /> </el-col>
</el-form-item> <el-col :span="8">
<el-form-item label="交易类型" prop="type"> <el-form-item label="银行" prop="bank">
<el-select v-model="form.type" placeholder="请选择交易类型"> <el-input v-model="form.bank" placeholder="请输入银行" />
<el-option label="请选择字典生成" value="" /> </el-form-item>
</el-select> </el-col>
</el-form-item> </el-row>
<el-form-item label="我方账户" prop="myCompany"> <el-row>
<el-input v-model="form.myCompany" placeholder="请输入我方账户" /> <el-col :span="8">
</el-form-item> <el-form-item label="交易类型" prop="type">
<el-form-item label="我方账号" prop="myNum"> <el-select v-model="form.type" placeholder="请选择交易类型">
<el-input v-model="form.myNum" placeholder="请输入我方账号" /> <el-option label="请选择字典生成" value="" />
</el-form-item> </el-select>
<el-form-item label="对方账户" prop="adverseCompany"> </el-form-item>
<el-input </el-col>
v-model="form.adverseCompany" <el-col :span="8">
placeholder="请输入对方账户" <el-form-item label="我方账户" prop="myCompany">
/> <el-input v-model="form.myCompany" placeholder="请输入我方账户" />
</el-form-item> </el-form-item>
<el-form-item label="对方账号" prop="adverseNum"> </el-col>
<el-input v-model="form.adverseNum" placeholder="请输入对方账号" /> <el-col :span="8">
</el-form-item> <el-form-item label="我方账号" prop="myNum">
<el-form-item label="业务实体" prop="company"> <el-input v-model="form.myNum" placeholder="请输入我方账号" />
<el-input v-model="form.company" placeholder="请输入业务实体" /> </el-form-item>
</el-form-item> </el-col>
<el-form-item label="所属部门" prop="dept"> </el-row>
<el-input v-model="form.dept" placeholder="请输入所属部门" /> <el-row>
</el-form-item> <el-col :span="8">
<el-form-item label="借/贷" prop="debitOrCredit"> <el-form-item label="对方账户" prop="adverseCompany">
<el-input v-model="form.debitOrCredit" placeholder="请输入借/贷" /> <el-input
</el-form-item> v-model="form.adverseCompany"
<el-form-item label="币种" prop="currency"> placeholder="请输入对方账户"
<el-input v-model="form.currency" placeholder="请输入币种" /> />
</el-form-item> </el-form-item>
<el-form-item label="状态" prop="status"> </el-col>
<el-radio-group v-model="form.status"> <el-col :span="8">
<el-radio label="1">请选择字典生成</el-radio> <el-form-item label="对方账号" prop="adverseNum">
</el-radio-group> <el-input
</el-form-item> v-model="form.adverseNum"
<el-form-item label="交易流水号" prop="serialNum"> placeholder="请输入对方账号"
<el-input v-model="form.serialNum" placeholder="请输入交易流水号" /> />
</el-form-item> </el-form-item>
<el-form-item label="借方金额" prop="debitMoney"> </el-col>
<el-input v-model="form.debitMoney" placeholder="请输入借方金额" /> <el-col :span="8">
</el-form-item> <el-form-item label="借/贷" prop="debitOrCredit">
<el-form-item label="交易金额" prop="tradMoney"> <el-input
<el-input v-model="form.tradMoney" placeholder="请输入交易金额" /> v-model="form.debitOrCredit"
</el-form-item> placeholder="请输入借/贷"
<el-form-item label="贷方金额" prop="creditMoney"> />
<el-input v-model="form.creditMoney" placeholder="请输入贷方金额" /> </el-form-item>
</el-form-item> </el-col>
<el-form-item label="余额" prop="balance"> </el-row>
<el-input v-model="form.balance" placeholder="请输入余额" /> <el-row>
</el-form-item> <el-col :span="8">
<el-form-item label="业务单号" prop="busNum"> <el-form-item label="币种" prop="currency">
<el-input v-model="form.busNum" placeholder="请输入业务单号" /> <el-input v-model="form.currency" placeholder="请输入币种" />
</el-form-item> </el-form-item>
<el-form-item label="回单编号" prop="receiptNum"> </el-col>
<el-input v-model="form.receiptNum" placeholder="请输入回单编号" /> <el-col :span="8">
</el-form-item> <el-form-item label="交易流水号" prop="serialNum">
<el-form-item label="摘要" prop="digest"> <el-input
<el-input v-model="form.digest" placeholder="请输入摘要" /> v-model="form.serialNum"
</el-form-item> placeholder="请输入交易流水号"
<el-form-item label="扩展摘要" prop="digestExtend"> />
<el-input v-model="form.digestExtend" placeholder="请输入扩展摘要" /> </el-form-item>
</el-form-item> </el-col>
<el-form-item label="业务摘要" prop="businessDigest"> <el-col :span="8">
<el-input <el-form-item label="借方金额" prop="debitMoney">
v-model="form.businessDigest" <el-input
placeholder="请输入业务摘要" v-model="form.debitMoney"
/> placeholder="请输入借方金额"
</el-form-item> />
<el-form-item label="用途" prop="purpose"> </el-form-item>
<el-input v-model="form.purpose" placeholder="请输入用途" /> </el-col>
</el-form-item> </el-row>
<el-form-item label="业务编号" prop="businessNum"> <el-row>
<el-input v-model="form.businessNum" placeholder="请输入业务编号" /> <el-col :span="8">
</el-form-item> <el-form-item label="交易金额" prop="tradMoney">
<el-form-item label="业务名称" prop="businessName"> <el-input v-model="form.tradMoney" placeholder="请输入交易金额" />
<el-input v-model="form.businessName" placeholder="请输入业务名称" /> </el-form-item>
</el-form-item> </el-col>
<el-form-item label="票据号" prop="billNum"> <el-col :span="8">
<el-input v-model="form.billNum" placeholder="请输入票据号" /> <el-form-item label="贷方金额" prop="creditMoney">
</el-form-item> <el-input
<el-form-item label="商务支付订单号" prop="businessOrder"> v-model="form.creditMoney"
<el-input placeholder="请输入贷方金额"
v-model="form.businessOrder" />
placeholder="请输入商务支付订单号" </el-form-item>
/> </el-col>
</el-form-item> <el-col :span="8">
<el-form-item label="企业识别码" prop="headingCode"> <el-form-item label="余额" prop="balance">
<el-input v-model="form.headingCode" placeholder="请输入企业识别码" /> <el-input v-model="form.balance" placeholder="请输入余额" />
</el-form-item> </el-form-item>
<el-form-item label="对方银行码" prop="bankCode"> </el-col>
<el-input v-model="form.bankCode" placeholder="请输入对方银行码" /> </el-row>
</el-form-item> <el-row>
<el-form-item label="对方开户地址" prop="bankSite"> <el-col :span="8">
<el-input v-model="form.bankSite" placeholder="请输入对方开户地址" /> <el-form-item label="业务单号" prop="busNum">
</el-form-item> <el-input v-model="form.busNum" placeholder="请输入业务单号" />
<el-form-item label="对方开户地区" prop="bankRegion"> </el-form-item>
<el-input </el-col>
v-model="form.bankRegion" <el-col :span="8">
placeholder="请输入对方开户地区" <el-form-item label="回单编号" prop="receiptNum">
/> <el-input
</el-form-item> v-model="form.receiptNum"
<el-form-item label="加密" prop="encrypt"> placeholder="请输入回单编号"
<el-input v-model="form.encrypt" placeholder="请输入加密" /> />
</el-form-item> </el-form-item>
<el-form-item label="归档状态" prop="archiveState"> </el-col>
<el-input v-model="form.archiveState" placeholder="请输入归档状态" /> <el-col :span="8">
</el-form-item> <el-form-item label="摘要" prop="digest">
<el-form-item label="密码" prop="password"> <el-input v-model="form.digest" placeholder="请输入摘要" />
<el-input v-model="form.password" placeholder="请输入密码" /> </el-form-item>
</el-form-item> </el-col>
</el-row>
<el-row>
<el-col :span="8">
<el-form-item label="扩展摘要" prop="digestExtend">
<el-input
v-model="form.digestExtend"
placeholder="请输入扩展摘要"
/>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="业务摘要" prop="businessDigest">
<el-input
v-model="form.businessDigest"
placeholder="请输入业务摘要"
/>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="用途" prop="purpose">
<el-input v-model="form.purpose" placeholder="请输入用途" />
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="8">
<el-form-item label="业务编号" prop="businessNum">
<el-input
v-model="form.businessNum"
placeholder="请输入业务编号"
/>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="业务名称" prop="businessName">
<el-input
v-model="form.businessName"
placeholder="请输入业务名称"
/>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="票据号" prop="billNum">
<el-input v-model="form.billNum" placeholder="请输入票据号" />
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="8">
<el-form-item label="商务支付订单号" prop="businessOrder">
<el-input
v-model="form.businessOrder"
placeholder="请输入商务支付订单号"
/>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="企业识别码" prop="headingCode">
<el-input
v-model="form.headingCode"
placeholder="请输入企业识别码"
/>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="对方银行码" prop="bankCode">
<el-input
v-model="form.bankCode"
placeholder="请输入对方银行码"
/>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="8">
<el-form-item label="对方开户地址" prop="bankSite">
<el-input
v-model="form.bankSite"
placeholder="请输入对方开户地址"
/>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="对方开户地区" prop="bankRegion">
<el-input
v-model="form.bankRegion"
placeholder="请输入对方开户地区"
/>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="加密" prop="encrypt">
<el-input v-model="form.encrypt" placeholder="请输入加密" />
</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>
<el-button @click="cancel"> </el-button> <el-button @click="cancel"> </el-button>
</div> </div>
</el-dialog> </el-dialog>
<!-- 密码输入框-->
<el-dialog
:title="title"
:visible.sync="open1"
width="800px"
append-to-body
>
<el-form
ref="queryForm"
:model="queryParams"
:rules="rules"
label-width="140px"
>
<el-row>
<el-col :span="14">
<el-form-item label="密码" prop="inputPassword">
<el-input
v-model="queryParams.inputPassword"
placeholder="请输入密码"
/>
</el-form-item>
</el-col>
</el-row>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button type="primary" @click="submitForm1"> </el-button>
<el-button @click="cancel1"> </el-button>
</div>
</el-dialog>
</div> </div>
</template> </template>
@ -394,6 +530,7 @@ import {
getBankSlip, getBankSlip,
getBankSlipPage, getBankSlipPage,
exportBankSlipExcel, exportBankSlipExcel,
downloadXml,
} from "@/api/accounting/bankSlip"; } from "@/api/accounting/bankSlip";
export default { export default {
@ -415,6 +552,7 @@ export default {
title: "", title: "",
// //
open: false, open: false,
open1: false,
// //
queryParams: { queryParams: {
pageNo: 1, pageNo: 1,
@ -460,6 +598,7 @@ export default {
archiveId: null, archiveId: null,
archiveState: null, archiveState: null,
password: null, password: null,
inputPassword: null,
}, },
// //
form: {}, form: {},
@ -486,6 +625,10 @@ export default {
this.open = false; this.open = false;
this.reset(); this.reset();
}, },
/** 取消按钮 */
cancel1() {
this.open1 = false;
},
/** 表单重置 */ /** 表单重置 */
reset() { reset() {
this.form = { this.form = {
@ -582,6 +725,32 @@ export default {
}); });
}); });
}, },
//
handleDownloadData() {
this.open1 = true;
this.queryParams.inputPassword = null;
},
submitForm1() {
this.$refs["queryForm"].validate((valid) => {
if (!valid) {
return;
}
//
let params = { ...this.queryParams };
downloadXml(params)
.then((response) => {
console.log(response.size);
if (response.size == 39) {
this.$modal.msgError("密码错误");
return false;
} else {
this.$download.excel(response, "发票元数据.xml");
this.open1 = false;
}
})
.catch(() => {});
});
},
/** 删除按钮操作 */ /** 删除按钮操作 */
handleDelete(row) { handleDelete(row) {
const id = row.id; const id = row.id;

Loading…
Cancel
Save