|
@@ -1,6 +1,6 @@
|
|
|
<template>
|
|
|
<div class="new-results" v-loading="state.loading" style="min-height: 300px">
|
|
|
- <div v-if="!state.error && isShow && hasPermission">
|
|
|
+ <div v-if="!state.error && isShow">
|
|
|
<div
|
|
|
style="
|
|
|
color:red;
|
|
@@ -46,11 +46,7 @@
|
|
|
</div>
|
|
|
|
|
|
<template v-else-if="!state.loading">
|
|
|
- <div style="color:red;display:flex;justify-content:center;align-items:center;margin-top:10px">
|
|
|
- <i class="el-icon-warning-outline" style="font-size:18px;margin-right:5px"></i>
|
|
|
- 该报表为信息部内部报表,暂不对外开放
|
|
|
- </div>
|
|
|
- <!-- <unusual-state :hasPermission="isShow" :message="state.message" path="newReport" /> -->
|
|
|
+ <unusual-state :hasPermission="isShow" :message="state.message" path="newEarningReport" />
|
|
|
</template>
|
|
|
</div>
|
|
|
</template>
|
|
@@ -61,6 +57,7 @@ import ResultCompany from "@/components/newEarningReport/company.vue"
|
|
|
import ResultSupplier from "@/components/newEarningReport/supplier.vue"
|
|
|
|
|
|
import { getOpenid, getParameterByName, removeOpenid, setOpenid } from "../utils/auth";
|
|
|
+import UnusualState from "@/components/unusual/index.vue";
|
|
|
import userRequest from "@/api/index";
|
|
|
|
|
|
export default {
|
|
@@ -68,7 +65,8 @@ export default {
|
|
|
components: {
|
|
|
ResultCompany,
|
|
|
ResultSupplier,
|
|
|
- PeriodDatePicker
|
|
|
+ PeriodDatePicker,
|
|
|
+ UnusualState
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
@@ -124,7 +122,7 @@ export default {
|
|
|
// "subscribe_time": "2022-12-21 15:52:14",
|
|
|
// "updatetime": "2023-05-09 16:22:33",
|
|
|
// "addtime": "2023-04-10 18:11:17",
|
|
|
- // "is_show": ["1", "2", "4", "6", "cost_field"],
|
|
|
+ // "is_show": ["1", "2", "4", "6", "8" ,"cost_field"],
|
|
|
// "nickname": "雪寒",
|
|
|
// "addr": "\/\/",
|
|
|
// "gender": "0",
|
|
@@ -143,26 +141,21 @@ export default {
|
|
|
// }
|
|
|
// }
|
|
|
|
|
|
- const permissions = [
|
|
|
- 'oOpc26KiZFBKIm7SB8knFGvov1qg',
|
|
|
- 'oOpc26KDBFTU71t-vWvJ_jTOPhGU',
|
|
|
- 'oOpc26LU21JoejLExJxOmjG7_E2I',
|
|
|
- 'oOpc26GnkwTcASDd1kHGd6TR23PE',
|
|
|
- 'oOpc26P6UZxE9eIwdQ4EXxKv1lRA'
|
|
|
- ];
|
|
|
-
|
|
|
- this.hasPermission = permissions.includes(result.data.openid);
|
|
|
- this.companies = result.data.companyArr.reduce((prev, current) => {
|
|
|
- return current.info.includes(6) || current.info.includes('6') ? [...prev, {
|
|
|
- value: current.companyNo,
|
|
|
- label: current.companyName
|
|
|
- }] : prev
|
|
|
- }, [])
|
|
|
+ // const permissions = [
|
|
|
+ // 'oOpc26KiZFBKIm7SB8knFGvov1qg',
|
|
|
+ // 'oOpc26KDBFTU71t-vWvJ_jTOPhGU',
|
|
|
+ // 'oOpc26LU21JoejLExJxOmjG7_E2I',
|
|
|
+ // 'oOpc26GnkwTcASDd1kHGd6TR23PE',
|
|
|
+ // 'oOpc26P6UZxE9eIwdQ4EXxKv1lRA'
|
|
|
+ // ];
|
|
|
+ // this.hasPermission = permissions.includes(result.data.openid);
|
|
|
+
|
|
|
+ this.companies = [ {"value": "GS2404151642335170","label": "北京元隆雅图文化传播股份有限公司"} ]
|
|
|
|
|
|
this.state.loading = false
|
|
|
switch (Number(result.code)) {
|
|
|
case 0:
|
|
|
- this.isShow = (result.data.is_show || []).includes(6) || (result.data.is_show || []).includes('6')
|
|
|
+ this.isShow = (result.data.is_show || []).includes(8) || (result.data.is_show || []).includes('8')
|
|
|
this.costField = (result.data.is_show || []).includes('cost_field')
|
|
|
setOpenid(result.data.openid)
|
|
|
break
|