Commit adbd0054 authored by Mac's avatar Mac

1

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