Commit adbd0054 authored by Mac's avatar Mac

1

parent 938ba950
......@@ -111,11 +111,13 @@
</template>
</el-dialog>
<!-- 收据的分享暂时 -->
<el-dialog custom-class='w500' title="分享图" :visible.sync="sharedialog" center>
<el-dialog custom-class='w200' title="分享图" :visible.sync="sharedialog" center>
<template>
<el-image style="width: 400px; height: 400px"
src="http://192.168.20.214:8130/EduSystem/Test/Upload/Temporary/202109290408209920000000003.jpeg">
</el-image>
<div class="courserefund_Div" id="proToCol" style="display: flex;flex-direction: column;align-items: center;">
<img src="http://192.168.20.214:8130/EduSystem/Test/Upload/Temporary/202109290408209920000000003.jpeg" alt="" style="width:150px;" />
<div>尊敬的客户</div>
<div>成都市锦江区甲鹤外语培训学校 发送给您了一个财务收据,请长按识别二维码查收</div>
</div>
<div slot="footer" class="dialog-footer">
<button class="hollowFixedBtn" @click="sharedialog=false">关闭</button>
<button class="normalBtn" type="primary" @click="download()">下载</button>
......@@ -154,7 +156,7 @@
receiptdialog: false,//新增收据的弹窗
rules: {
Remitter: [
{ required: true, message: '请选择交款人', trigger: 'blur' },
{ required: true, message: '请输入交款人', trigger: 'blur' },
],
Remark: [
{ required: true, message: '请输入事由', trigger: 'blur' },
......@@ -165,12 +167,17 @@
EmployeeId: 0,
isoneself: false,//是否是本人操作
sharedialog: false,
Money:0,
Fee:0,
}
}, watch: {
}, created() {
this.addMsg.FinanceId = this.FrID
this.addMsg.Money = Number(this.GetDetail.Money) + Number(this.GetDetail.Fee)
this.addMsg.Remitter = this.GetDetail.RemitterName
this.Money = (this.GetDetail.Money).toString().replace(/,/g, "")//处理替换所有的逗号
this.Fee = (this.GetDetail.Fee).toString().replace(/,/g, "")
this.addMsg.Money = Number(this.Money) + Number(this.Fee)
let userInfo = this.getLocalStorage()
this.EmployeeId = userInfo.Id;
if (this.EmployeeId == this.GetDetail.CreateBy) {
......@@ -223,18 +230,12 @@
this.Success(res.Message);
this.getDetails()
this.receiptdialog = false
this.addMsg = {//初始化
Id: 0,
FinanceId: '',//财务单据ID
ReceiptNo: '',//收据编码
Remitter: '',//交款人
Money: '',//金额
Remark: '',//事由
State: '',// 状态 1已认领 2未认领
ClaimCode: '',//认领码
}
this.addMsg.Remitter = this.GetDetail.RemitterName;//交款人
this.addMsg.Remark = '';//事由
this.addMsg.Money = Number(this.Money) + Number(this.Fee)
this.addMsg.FinanceId = this.FrID
this.addMsg.Money = Number(this.GetDetail.Money) + Number(this.GetDetail.Fee)
this.addMsg.Id= 0
}
}).catch(() => {
......@@ -256,6 +257,11 @@
if (res.Code == 1) {
that.Success(res.Message);
that.getDetails()
this.addMsg.Id= 0
this.addMsg.Remitter = this.GetDetail.RemitterName;//交款人
this.addMsg.Remark = '';//事由
this.addMsg.Money = Number(this.Money) + Number(this.Fee)
this.addMsg.FinanceId = this.FrID
}
}).catch(() => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment