Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
confucius
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
罗超
confucius
Commits
1afb353a
Commit
1afb353a
authored
Oct 11, 2021
by
Mac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
6a5e3ec9
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
65 additions
and
25 deletions
+65
-25
index.js
src/api/finance/index.js
+11
-0
mySJModule.vue
src/pages/financial/components/mySJModule.vue
+42
-23
receiptManage.vue
src/pages/system/receiptManage.vue
+12
-2
No files found.
src/api/finance/index.js
View file @
1afb353a
...
...
@@ -481,6 +481,17 @@ export function setSellStudyAbroadSendEmployee(data) {
data
})
}
/**
* 获取收据分享二维码链接
*
*/
export
function
createWeChatCodeForReceipt
(
data
)
{
return
request
({
url
:
'/EducationContract/CreateWeChatCodeForReceipt'
,
method
:
'post'
,
data
})
}
src/pages/financial/components/mySJModule.vue
View file @
1afb353a
...
...
@@ -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
()
...
...
src/pages/system/receiptManage.vue
View file @
1afb353a
...
...
@@ -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
;
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment