Commit 1afb353a authored by Mac's avatar Mac

1

parent 6a5e3ec9
......@@ -481,6 +481,17 @@ export function setSellStudyAbroadSendEmployee(data) {
data
})
}
/**
 * 获取收据分享二维码链接
 *
 */
export function createWeChatCodeForReceipt(data) {
  return request({
    url: '/EducationContract/CreateWeChatCodeForReceipt',
    method: 'post',
    data
  })
}
......@@ -111,7 +111,7 @@
<el-input v-model="addMsg.Remitter" placeholder="请输入交款人"></el-input>
</el-form-item>
<el-form-item label="收款事由" prop="Remark">
<el-input v-model="addMsg.Remark" type="textarea" rows='3'></el-input>
<el-input v-model="addMsg.Remark" type="textarea" rows='3' style="border: 1px solid #dcdfe6;"></el-input>
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
......@@ -123,11 +123,11 @@
<!-- 收据的分享暂时 -->
<el-dialog custom-class='w400' title="分享图" :visible.sync="sharedialog" center>
<template>
<div class="courserefund_Div" id="proToCol"
<div id="proToCol"
style="display: flex;flex-direction: column;align-items: center; padding: 15px;">
<img :src="imgurl" alt="" style="width:100%;" />
<div style="margin-top: 25px;width: 100%; display: flex; flex-direction: column; align-items: center;">
<div>尊敬的客户,成都市锦江区甲鹤外语培训学校</div>
<div>成都市锦江区甲鹤外语培训学校</div>
<div>发送给您了一个财务收据</div>
<div>请长按识别二维码查收</div>
</div>
......@@ -154,7 +154,8 @@
import {
getReceiptInfoForFinanceId,
setReceiptInfo,
delReceiptInfo
delReceiptInfo,
createWeChatCodeForReceipt
} from '../../../api/finance/index'
export default {
......@@ -300,27 +301,45 @@
tipLoadding.show({
message: '正在生成二维码,请稍后...'
})
this.apipostDS(
"/api/user/GetWeiXinQRCodeForHT", {
Path: "/pages/school/personal/receiptDetails?id=" + this.FrID+'&JumpType=20',
With: 430
},
(res) => {
if (res.data.resultCode == 1) {
if (res.data.data) {
this.imgurl = this.domainManager().mallUrl + res.data.data
console.log(this.imgurl)
this.sharedialog = true
tipLoadding.hide();
}
} else {
this.Error(res.data.message);
tipLoadding.hide();
let msg = {
url: this.FrID,
width: 430
}
createWeChatCodeForReceipt(msg).then((res) => {
if (res.Code == 1) {
let address = process.env.API;
let aOne = address.split('/api')[0];
this.imgUrl = aOne + res.Data;
console.log(aOne + res.Data)
console.log(this.imgUrl)
}
// this.imgurl = this.domainManager().mallUrl + res.Data
this.sharedialog = true
tipLoadding.hide();
} else {
tipLoadding.hide();
}
);
});
// this.apipostDS(
// "/api/user/GetWeiXinQRCodeForHT", {
// Path: "/pages/index/index?id=" + this.FrID+'&JumpType=20',
// With: 430
// },
// (res) => {
// if (res.data.resultCode == 1) {
// if (res.data.data) {
// tipLoadding.hide();
// }
// } else {
// this.Error(res.data.message);
// tipLoadding.hide();
// }
// }
// );
},
blobToDataURL(blob, callback) {
var a = new FileReader()
......
......@@ -260,8 +260,18 @@
this.isShowBaseSet = false;
},
geteject() {
this.addMsg = JSON.parse(JSON.stringify(this.baseObj))
this.tempManager = this.addMsg.TempleteIds.split(',').map(Number)
if(this.baseObj.Id>0){
this.addMsg = JSON.parse(JSON.stringify(this.baseObj))
this.tempManager = this.addMsg.TempleteIds && this.addMsg.TempleteIds!=''? this.addMsg.TempleteIds.split(',').map(Number):[]
}else{
this.addMsg={
Id:0,
Enable:1,
TempleteIds:'',
Images:''
}
}
// this.getIds()//去掉不限 这里注释掉不处理
this.isShowBaseSet = true;
},
......
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