|
|
@ -1,8 +1,20 @@ |
|
|
|
<template> |
|
|
|
|
|
|
|
<view style="margin-left: 20px; margin-right: 20px;padding-bottom: 50px"> |
|
|
|
|
|
|
|
<view style="display: flex;width: 100%;"> |
|
|
|
<view style="flex: 1;"></view> |
|
|
|
<text style="size: 25px;font-family: sans-serif;font-weight: 600;color: white; |
|
|
|
margin-top: 10px;margin-right: 5px;border: none; padding: 5px 15px; |
|
|
|
border-radius: 5px 5px; |
|
|
|
background: #0498FD;" @click="download"> |
|
|
|
下载 |
|
|
|
</text> |
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
|
|
<view |
|
|
|
style="display: flex;width: 100%;justify-content: center;size: 25px;font-family: sans-serif;font-weight: 600;margin-top: 20px;"> |
|
|
|
style="display: flex;width: 100%;justify-content: center;size: 25px;font-family: sans-serif;font-weight: 600;margin-top: 10px;"> |
|
|
|
每日回款审核报告 |
|
|
|
</view> |
|
|
|
|
|
|
@ -20,7 +32,7 @@ |
|
|
|
<text style="font-family: sans-serif;font-weight: 600;">{{info.difference}}</text> |
|
|
|
<text> 元,未回款原因平台扣除手续费、服务费等。具体原因详见附件今日回款明细。</text> |
|
|
|
|
|
|
|
<view > |
|
|
|
<view> |
|
|
|
<text>截至</text> |
|
|
|
<text style="font-family: sans-serif;font-weight: 600;">{{info.endTime}}</text> |
|
|
|
<text>,今日支付完毕款项后,账户余额为:</text> |
|
|
@ -29,7 +41,7 @@ |
|
|
|
</view> |
|
|
|
|
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
|
|
<view style="display: flex;flex-direction: column;margin-top: 15px; line-height: 30px;"> |
|
|
|
<text style="size: 25px;font-family: sans-serif;font-weight: 600;">审核结果:</text> |
|
|
|
<text style="text-indent:2em;">{{info.auditResult}}</text> |
|
|
@ -39,21 +51,21 @@ |
|
|
|
<text style="font-family: sans-serif;font-weight: 600;">{{info.accountNumber}}</text> |
|
|
|
<text>)。</text> |
|
|
|
</view> --> |
|
|
|
|
|
|
|
|
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<view style="display: flex;flex-direction: column;width: 100%;align-items: flex-end; margin-top: 30px;"> |
|
|
|
|
|
|
|
|
|
|
|
<text style="font-family: sans-serif;font-weight: 600;">{{info.reviewedBy}}</text> |
|
|
|
<text style="margin-top:10px ; font-family: sans-serif;font-weight: 600;">{{info.date}}</text> |
|
|
|
|
|
|
|
|
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<view style="margin-top: 50px; display: flex; flex-direction: column;"> |
|
|
|
<text style="size: 25px;font-family: sans-serif;font-weight: 600;padding-bottom: 10px;">附件:今日回款明细</text> |
|
|
|
<uni-table ref="table1" border stripe emptyText="暂无更多数据"> |
|
|
|
<uni-table ref="table1" border stripe emptyText="暂无更多数据"> |
|
|
|
<uni-tr> |
|
|
|
<uni-th align="center">销售日期</uni-th> |
|
|
|
<uni-th align="center">支付渠道</uni-th> |
|
|
@ -109,8 +121,8 @@ |
|
|
|
data() { |
|
|
|
return { |
|
|
|
queryParams: { |
|
|
|
dataDate: "", |
|
|
|
companyName: "" |
|
|
|
dataDate: "2023-06-14", |
|
|
|
companyName: "河北源蜂惠民科技集团有限公司" |
|
|
|
}, |
|
|
|
loading1: false, |
|
|
|
loading2: false, |
|
|
@ -129,43 +141,94 @@ |
|
|
|
}, |
|
|
|
|
|
|
|
tableData1: [ |
|
|
|
// { |
|
|
|
// "salesDate": "2023年6月7日", |
|
|
|
// "payChannels": "批发-京东", |
|
|
|
// "money": "397.09", |
|
|
|
// "mainBody": "源蜂-汇融", |
|
|
|
// "collection": "357.87", |
|
|
|
// "different": "39.22", |
|
|
|
// "notes": "6.7回小时购150.12" |
|
|
|
// }, |
|
|
|
// { |
|
|
|
// "salesDate": "2023年6月7日", |
|
|
|
// "payChannels": "批发-京东", |
|
|
|
// "money": "397.09", |
|
|
|
// "mainBody": "源蜂-汇融", |
|
|
|
// "collection": "357.87", |
|
|
|
// "different": "39.22", |
|
|
|
// "notes": "6.7回小时购150.12" |
|
|
|
// }, |
|
|
|
], |
|
|
|
tableData2: [ |
|
|
|
// { |
|
|
|
// "payChannels": "现金", |
|
|
|
// "money": "63094.88", |
|
|
|
// "mainBody": "-", |
|
|
|
// "cycle": "每月19号归集" |
|
|
|
// }, |
|
|
|
// { |
|
|
|
// "payChannels": "现金", |
|
|
|
// "money": "63094.88", |
|
|
|
// "mainBody": "-", |
|
|
|
// "cycle": "每月19号归集" |
|
|
|
// }, |
|
|
|
], |
|
|
|
|
|
|
|
fileUrl: "" |
|
|
|
}; |
|
|
|
}, |
|
|
|
onLoad(option) { |
|
|
|
|
|
|
|
this.queryParams = { |
|
|
|
dataDate: option.dataDate, |
|
|
|
companyName: option.companyName |
|
|
|
} |
|
|
|
// this.queryParams = { |
|
|
|
// dataDate: option.dataDate, |
|
|
|
// companyName: option.companyName |
|
|
|
// } |
|
|
|
|
|
|
|
console.log('1111', this.queryParams) |
|
|
|
this.getData() |
|
|
|
|
|
|
|
}, |
|
|
|
onShow() { |
|
|
|
wx.hideHomeButton() |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
|
|
|
|
download() { |
|
|
|
if (this.fileUrl == '') { |
|
|
|
uni.showToast({ |
|
|
|
title: "下载地址错误,请重新进入页面。", |
|
|
|
duration: 5000 |
|
|
|
}) |
|
|
|
return |
|
|
|
} |
|
|
|
|
|
|
|
uni.downloadFile({ |
|
|
|
url: this.fileUrl, // 网络文档地址 |
|
|
|
success: (data) => { |
|
|
|
if (data.statusCode === 200) { |
|
|
|
uni.saveFile({ |
|
|
|
tempFilePath: data.tempFilePath, //临时路径 |
|
|
|
success: function(res) { |
|
|
|
// 保存路径 |
|
|
|
uni.showToast({ |
|
|
|
title: "文件已保存:" + res.savedFilePath, |
|
|
|
duration: 5000 |
|
|
|
}) |
|
|
|
setTimeout(() => { |
|
|
|
//打开文档查看 |
|
|
|
uni.openDocument({ |
|
|
|
filePath: res.savedFilePath, |
|
|
|
showMenu: true, //右上角是否有可以转发分享的功能 |
|
|
|
success: function(res) { |
|
|
|
console.log('打开文档成功') |
|
|
|
} |
|
|
|
}) |
|
|
|
}, 3000); |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
}, |
|
|
|
fail: (err) => { |
|
|
|
uni.showToast({ |
|
|
|
title: '失败请重新下载' |
|
|
|
}); |
|
|
|
}, |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
getData() { |
|
|
|
console.log('getData', this.queryParams) |
|
|
|
this.$api.getReportInfo(this.queryParams).then((resp) => { |
|
|
|
console.log('1111>>>>>>', resp) |
|
|
|
|
|
|
|
this.fileUrl = resp.downloadUrl |
|
|
|
this.info = resp |
|
|
|
|
|
|
|
}).catch(e => { |
|
|
@ -183,7 +246,7 @@ |
|
|
|
|
|
|
|
this.$api.getCsmReportYesterdayByComSid(this.queryParams).then((resp) => { |
|
|
|
console.log('3333>>>>>>', resp) |
|
|
|
this.loading2 = true |
|
|
|
this.loading2 = true |
|
|
|
this.tableData2 = resp |
|
|
|
|
|
|
|
}).catch(e => { |
|
|
|