付款单模板,导入文件修复bug

product
chuang 2 years ago
parent a0e1b5dc36
commit 5aa66196eb

@ -14,6 +14,9 @@ public class PaymentdocMessage {
/**付款请示**/
private String customerName;
/**单据编号**/
private String documentNo;
/**供应商名称**/
private String supplierName;

@ -41,11 +41,13 @@
<result column="remark" property="remark"/>
<result column="enclosure" property="enclosure"/>
<result column="payType" property="payType"/>
<result column="documentNo" property="documentNo"/>
</resultMap>
<select id="getPaymentDocMessage" resultMap="getPaymentDocMessageMap">
SELECT
a.customer_name customerName,
a.document_no documentNo,
b.supplier_name supplierName,
a.ramount ramout,
a.payment_amount paymentAmout,

@ -17,7 +17,7 @@
<div id="app">
<h1 style="text-align: center">${customerName!"城市矿产"}请示</h1>
<p align="right">
流程编号QS-CSKC-2023-000000066723
单据编号:${documentNo!"无"}
</p>
<div class="el-descriptions">
<div class="el-descriptions__body">

@ -316,6 +316,7 @@ import FlowBox from "@/views/workFlow/components/FlowBox";
import JNPFForm from "./paymentForm";
import ExportBox from "./ExportBox";
import { getDataInterfaceRes } from "@/api/systemData/dataInterface";
import {getToken} from "@/utils/auth";
export default {
components: {
@ -570,17 +571,19 @@ export default {
.catch(() => {});
},
downPayment() {
if (!this.multipleSelectionItemt.length) {
this.$message({
type: "error",
message: "请选择一条数据",
duration: 2500,
});
return;
}
// if (!this.multipleSelectionItemt.length) {
// this.$message({
// type: "error",
// message: "",
// duration: 2500,
// });
// return;
// }
this.multipleSelectionItem.forEach((item, index) => {
//console.log(this.$store.getters.token);
let url = "/api/info/getPaymentDocPdf/" + item.id+"?token="+this.$store.getters.token;
// let url = "/api/info/getPaymentDocPdf/" + item.id+"/"+this.$store.getters.token;
let url = "/api/info/getPaymentDocPdf/" + item.id+"/"+getToken();
// console.log(url);
this.jnpf.downloadFile(url);
});
},

Loading…
Cancel
Save