|
@@ -1,8 +1,12 @@
|
|
|
<template>
|
|
|
<div id="reportDownload">
|
|
|
<div class="reportContent">
|
|
|
- <div class="title">报告下载余额</div>
|
|
|
- <div class="desc">注:请在有效期内使用,过期清零,不可转赠。</div>
|
|
|
+ <div class="title">
|
|
|
+ 报告下载余额
|
|
|
+ </div>
|
|
|
+ <div class="desc">
|
|
|
+ 注:请在有效期内使用,过期清零,不可转赠。
|
|
|
+ </div>
|
|
|
<div class="box_content">
|
|
|
<div class="item">
|
|
|
<div class="line green" />
|
|
@@ -10,9 +14,7 @@
|
|
|
<div class="left">
|
|
|
<span class="count">{{ winner.total }}</span>
|
|
|
<span class="unit">份</span>
|
|
|
- <span class="textbtn" @click="goDetail('企业中标分析报告')"
|
|
|
- >查明细</span
|
|
|
- >
|
|
|
+ <span class="textbtn" @click="goDetail('企业中标分析报告')">查明细</span>
|
|
|
<span class="texticon" />
|
|
|
</div>
|
|
|
<div class="right" @click="rechargeNow('企业中标分析报告')">
|
|
@@ -20,7 +22,9 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="textGroup">
|
|
|
- <div class="left">企业中标分析报告下载余额</div>
|
|
|
+ <div class="left">
|
|
|
+ 企业中标分析报告下载余额
|
|
|
+ </div>
|
|
|
<div v-if="winner.minEndTime" class="right">
|
|
|
最近有效期至:{{ winner.minEndTime }}
|
|
|
</div>
|
|
@@ -32,9 +36,7 @@
|
|
|
<div class="left">
|
|
|
<span class="count">{{ buyer.total }}</span>
|
|
|
<span class="unit">份</span>
|
|
|
- <span class="textbtn" @click="goDetail('业主采购分析报告')"
|
|
|
- >查明细</span
|
|
|
- >
|
|
|
+ <span class="textbtn" @click="goDetail('业主采购分析报告')">查明细</span>
|
|
|
<span class="texticon" />
|
|
|
</div>
|
|
|
<div class="right" @click="rechargeNow('业主采购分析报告')">
|
|
@@ -42,7 +44,9 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="textGroup">
|
|
|
- <div class="left">业主采购分析报告下载余额</div>
|
|
|
+ <div class="left">
|
|
|
+ 业主采购分析报告下载余额
|
|
|
+ </div>
|
|
|
<div v-if="buyer.minEndTime" class="right">
|
|
|
最近有效期至:{{ buyer.minEndTime }}
|
|
|
</div>
|
|
@@ -54,9 +58,7 @@
|
|
|
<div class="left">
|
|
|
<span class="count">{{ market.total }}</span>
|
|
|
<span class="unit">份</span>
|
|
|
- <span class="textbtn" @click="goDetail('市场分析定制报告')"
|
|
|
- >查明细</span
|
|
|
- >
|
|
|
+ <span class="textbtn" @click="goDetail('市场分析定制报告')">查明细</span>
|
|
|
<span class="texticon" />
|
|
|
</div>
|
|
|
<div class="right" @click="rechargeNow('市场分析定制报告')">
|
|
@@ -64,15 +66,39 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="textGroup">
|
|
|
- <div class="left">市场分析定制报告下载余额</div>
|
|
|
+ <div class="left">
|
|
|
+ 市场分析定制报告下载余额
|
|
|
+ </div>
|
|
|
<div v-if="market.minEndTime" class="right">
|
|
|
最近有效期至:{{ market.minEndTime }}
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
+ <!-- S 投标企业信用报告入口 S -->
|
|
|
+ <div class="credit_report">
|
|
|
+ <div class="credit_report_main">
|
|
|
+ <div class="credit_report_title">
|
|
|
+ <span>投标企业信用报告</span>
|
|
|
+ <div class="credit_report_action">
|
|
|
+ <div class="credit_report_example" @click="viewReportExample">
|
|
|
+ 报告样例 <span class="texticon" />
|
|
|
+ </div>
|
|
|
+ <div class="credit_report_btn" @click="goBuy">
|
|
|
+ 去购买
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="credit_report_content">
|
|
|
+ <span>信用报告通过信用背书、风险预警、政策适配,三大核心作用,成为投标企业参与市场竞争的关键工具。</span>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <!-- E 投标企业信用报告入口 E -->
|
|
|
<div class="content_list">
|
|
|
- <div class="title">报告下载记录</div>
|
|
|
+ <div class="title">
|
|
|
+ 报告下载记录
|
|
|
+ </div>
|
|
|
<div class="list_box">
|
|
|
<van-list
|
|
|
ref="vanList"
|
|
@@ -106,7 +132,9 @@
|
|
|
:before-close="beforeEmailDialogClose"
|
|
|
>
|
|
|
<div class="attachment-content">
|
|
|
- <div class="attachment-tip-text">附件将以邮件的形式发送至您的邮箱</div>
|
|
|
+ <div class="attachment-tip-text">
|
|
|
+ 附件将以邮件的形式发送至您的邮箱
|
|
|
+ </div>
|
|
|
<van-field
|
|
|
v-model="attachment.email"
|
|
|
class="attachment-email-input"
|
|
@@ -179,9 +207,11 @@ export default {
|
|
|
colorFilter(val) {
|
|
|
if (val === '1') {
|
|
|
return 'green'
|
|
|
- } else if (val === '2') {
|
|
|
+ }
|
|
|
+ else if (val === '2') {
|
|
|
return 'yellow'
|
|
|
- } else if (val === '3') {
|
|
|
+ }
|
|
|
+ else if (val === '3') {
|
|
|
return 'blue'
|
|
|
}
|
|
|
}
|
|
@@ -190,6 +220,9 @@ export default {
|
|
|
this.getcount()
|
|
|
},
|
|
|
methods: {
|
|
|
+ viewReportExample() {},
|
|
|
+ goBuy() {
|
|
|
+ },
|
|
|
async getcount() {
|
|
|
const { data } = await pdfaccount({})
|
|
|
if (data) {
|
|
@@ -216,13 +249,14 @@ export default {
|
|
|
this.list.total = data.count
|
|
|
// this.list.total = 10 //不支持分页可以写死
|
|
|
this.list.value = this.list.value.concat(data.list)
|
|
|
- } else {
|
|
|
+ }
|
|
|
+ else {
|
|
|
this.list.finished = true
|
|
|
}
|
|
|
// 数据请求完成(根据页码计算,当前页是否是最后一页)
|
|
|
// 请求完成后,页码就变为了下一页的页面,所以这里要-1
|
|
|
- const isLastPage =
|
|
|
- (this.list.pageNum - 1) * this.list.pageSize >= this.list.total
|
|
|
+ const isLastPage
|
|
|
+ = (this.list.pageNum - 1) * this.list.pageSize >= this.list.total
|
|
|
if (isLastPage) {
|
|
|
this.list.finished = true
|
|
|
}
|
|
@@ -233,11 +267,13 @@ export default {
|
|
|
this.$router.push({
|
|
|
path: '/order/create/enterpriseanalysis'
|
|
|
})
|
|
|
- } else if (type === '业主采购分析报告') {
|
|
|
+ }
|
|
|
+ else if (type === '业主采购分析报告') {
|
|
|
this.$router.push({
|
|
|
path: '/order/create/owneranalysis'
|
|
|
})
|
|
|
- } else if (type === '市场分析定制报告') {
|
|
|
+ }
|
|
|
+ else if (type === '市场分析定制报告') {
|
|
|
this.$router.push({
|
|
|
path: '/order/create/marketanalysis'
|
|
|
})
|
|
@@ -263,7 +299,8 @@ export default {
|
|
|
eId: item.ent
|
|
|
}
|
|
|
})
|
|
|
- } else {
|
|
|
+ }
|
|
|
+ else {
|
|
|
// 采购单位画像
|
|
|
// 跳转页面
|
|
|
let goLink = ''
|
|
@@ -271,13 +308,15 @@ export default {
|
|
|
goLink = `/big/wx/page/unit_portrayal?entName=${encodeURIComponent(
|
|
|
item.entName
|
|
|
)}`
|
|
|
- } else {
|
|
|
+ }
|
|
|
+ else {
|
|
|
// 新商机管理采购单位画像
|
|
|
if (this.isNewBusiness) {
|
|
|
goLink = `/jyapp/big/page/client_portrayal?entName=${encodeURIComponent(
|
|
|
item.entName
|
|
|
)}&from=client`
|
|
|
- } else {
|
|
|
+ }
|
|
|
+ else {
|
|
|
goLink = `/jyapp/big/page/unit_portrayal?entName=${encodeURIComponent(
|
|
|
item.entName
|
|
|
)}`
|
|
@@ -300,9 +339,11 @@ export default {
|
|
|
let defaultName = '报告'
|
|
|
if (item.type === '1') {
|
|
|
defaultName = '企业中标分析报告'
|
|
|
- } else if (item.type === '2') {
|
|
|
+ }
|
|
|
+ else if (item.type === '2') {
|
|
|
defaultName = '业主采购分析报告'
|
|
|
- } else if (item.type === '3') {
|
|
|
+ }
|
|
|
+ else if (item.type === '3') {
|
|
|
defaultName = '市场分析定制报告'
|
|
|
}
|
|
|
if (newIOSApp) {
|
|
@@ -316,11 +357,13 @@ export default {
|
|
|
loading.clear()
|
|
|
appDownLoadFile(name, types, fileUrl, size)
|
|
|
})
|
|
|
- } else {
|
|
|
+ }
|
|
|
+ else {
|
|
|
location.href = fileUrl
|
|
|
// window.open(fileUrl)
|
|
|
}
|
|
|
- } else {
|
|
|
+ }
|
|
|
+ else {
|
|
|
// fileUrl: 下载地址
|
|
|
if (fileUrl) {
|
|
|
if (platform === 'wx') {
|
|
@@ -332,11 +375,13 @@ export default {
|
|
|
target: encodeURIComponent(fileUrl)
|
|
|
}
|
|
|
})
|
|
|
- } else {
|
|
|
+ }
|
|
|
+ else {
|
|
|
// window.open(fileUrl)
|
|
|
location.href = fileUrl
|
|
|
}
|
|
|
- } else {
|
|
|
+ }
|
|
|
+ else {
|
|
|
console.log('获取附件fid失败')
|
|
|
}
|
|
|
}
|
|
@@ -344,7 +389,8 @@ export default {
|
|
|
viewReport() {
|
|
|
if (this.$envs.inAppOrH5) {
|
|
|
location.href = '/jyapp/big/page/report_analysis'
|
|
|
- } else {
|
|
|
+ }
|
|
|
+ else {
|
|
|
location.href = '/big/wx/page/report_analysis'
|
|
|
}
|
|
|
},
|
|
@@ -358,7 +404,8 @@ export default {
|
|
|
if (code === 0) {
|
|
|
done && done()
|
|
|
this.$toast('已发送至邮箱')
|
|
|
- } else {
|
|
|
+ }
|
|
|
+ else {
|
|
|
done && done(false)
|
|
|
this.$toast('发送失败')
|
|
|
}
|
|
@@ -377,7 +424,8 @@ export default {
|
|
|
if (!emailRegExp.test(email)) {
|
|
|
done(false)
|
|
|
return this.$toast('邮箱格式错误')
|
|
|
- } else {
|
|
|
+ }
|
|
|
+ else {
|
|
|
const { fileUrl } = this.attachment
|
|
|
|
|
|
if (!fileUrl) {
|
|
@@ -396,7 +444,8 @@ export default {
|
|
|
console.log(fileSize, '文件大小')
|
|
|
try {
|
|
|
callback(fileSize)
|
|
|
- } catch (e) {
|
|
|
+ }
|
|
|
+ catch (e) {
|
|
|
console.log(e)
|
|
|
}
|
|
|
}
|
|
@@ -407,7 +456,7 @@ export default {
|
|
|
}
|
|
|
</script>
|
|
|
|
|
|
-<style>
|
|
|
+<style lang="scss">
|
|
|
#reportDownload {
|
|
|
background-color: #f5f6f7;
|
|
|
|
|
@@ -475,14 +524,6 @@ export default {
|
|
|
margin-left: 12px;
|
|
|
}
|
|
|
|
|
|
- .texticon {
|
|
|
- width: 12px;
|
|
|
- height: 12px;
|
|
|
- display: inline-block;
|
|
|
- background-image: url(@/assets/image/reportanalysis/icon_download.png);
|
|
|
- background-size: contain;
|
|
|
- background-repeat: no-repeat;
|
|
|
- }
|
|
|
}
|
|
|
|
|
|
.right {
|
|
@@ -536,7 +577,67 @@ export default {
|
|
|
margin-bottom: 0;
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
+ .texticon {
|
|
|
+ width: 12px;
|
|
|
+ height: 12px;
|
|
|
+ display: inline-block;
|
|
|
+ background-image: url(@/assets/image/reportanalysis/icon_download.png);
|
|
|
+ background-size: contain;
|
|
|
+ background-repeat: no-repeat;
|
|
|
+ }
|
|
|
+ .credit_report {
|
|
|
+ margin-top: 16px;
|
|
|
+ width: 100%;
|
|
|
+ background: linear-gradient(to right, #EFFDFF, #FFFFFF);
|
|
|
+ border: 1px solid #87DFEA;
|
|
|
+ box-shadow: 0px 2px 8px 0px rgba(54, 147, 179, 0.05);
|
|
|
+ border-radius: 8px;
|
|
|
+ .credit_report_main {
|
|
|
+ padding: 12px;
|
|
|
+ width: 100%;
|
|
|
+ height: 100%;
|
|
|
+ background: url(../../assets/image/reportanalysis/credit-corner-bg.png) no-repeat;
|
|
|
+ background-size: 58px 55px;
|
|
|
+ background-position: right bottom;
|
|
|
+ }
|
|
|
+ .credit_report_title {
|
|
|
+ display: flex;
|
|
|
+ justify-content: space-between;
|
|
|
+ align-items: center;
|
|
|
+ > span {
|
|
|
+ font-size: 16px;
|
|
|
+ line-height: 24px;
|
|
|
+ color: #171826;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .credit_report_action {
|
|
|
+ display: flex;
|
|
|
+ justify-content: space-between;
|
|
|
+ align-items: center;
|
|
|
+ .credit_report_example {
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ margin-right: 10px;
|
|
|
+ font-size: 12px;
|
|
|
+ line-height: 18px;
|
|
|
+ color: #2ABED1;
|
|
|
+ }
|
|
|
+ .credit_report_btn {
|
|
|
+ padding: 2px 17px;
|
|
|
+ background: #2ABED1;
|
|
|
+ color: #fff;
|
|
|
+ font-size: 12px;
|
|
|
+ line-height: 18px;
|
|
|
+ border-radius: 4px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .credit_report_content {
|
|
|
+ margin-top: 10px;
|
|
|
+ font-size: 12px;
|
|
|
+ line-height: 18px;
|
|
|
+ color: #5F5E64;
|
|
|
+ }
|
|
|
+ }
|
|
|
.content_list {
|
|
|
margin-top: 16px;
|
|
|
|