snow 1 year ago
parent
commit
00a448e61b

File diff suppressed because it is too large
+ 0 - 0
dist/index.html


File diff suppressed because it is too large
+ 0 - 0
dist/static/css/app.ba9d8b1e.css


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/app.4a64760c.js


BIN
dist/static/js/app.4a64760c.js.gz


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/app.cbd8abb2.js


BIN
dist/static/js/app.cbd8abb2.js.gz


+ 9 - 2
src/pages/accountsReceivable.vue

@@ -1,6 +1,6 @@
 <template>
   <div class="SalesReportRejectedNew">
-    <div v-if="!state.error">
+    <div v-if="!state.error && isShow">
       <div class="table-header" style="line-height:36px">万宇应收账款报表看板</div>
       <el-table
         :data="tableData"
@@ -58,7 +58,7 @@
       </el-table>
     </div>
 
-    <template v-else>
+    <template v-else-if="state.error && isShow">
       <unusual-state :message="state.message" path="accountsReceivable" />
     </template>
   </div>
@@ -92,6 +92,7 @@ export default {
   },
   data() {
     return {
+      isShow:false,
       total:{
         day:0,
         month:0,
@@ -169,6 +170,12 @@ export default {
         this.state.loading = false
         switch(Number(result.code)){
           case 0:
+          this.isShow =  (result.data.is_show || []).includes(3) || (result.data.is_show || []).includes('3')
+
+          if(!this.isShow){
+            return
+          }
+
           this.$nextTick(() => this.getHeight());
           this.searchList();
            break

+ 0 - 70
src/utils/auth.js

@@ -21,73 +21,3 @@ export function getParameterByName(name) {
   if (!results[2]) return '';
   return decodeURIComponent(results[2].replace(/\+/g, ' '));
 }
-
-export async function requestUserinfo(){
-  this.state.loading = true;
-  // const openid = getOpenid()
-  const code = getParameterByName('code')
-  const result = await asyncRequest.userinfo({
-    code
-  })
-
-  const state = {
-    companine:[],
-    error:false,
-    hasPlatformDimension:false,
-    message:""
-  }
-
-  // const result ={
-  // "code": 0,
-  // "message": "获取成功",
-  // "data": {
-  //     "id": "1",
-  //     "openid": "oOpc26KiZFBKIm7SB8knFGvov1qg",
-  //     "mobile": "",
-  //     "gender": "0",
-  //     "nickname": "雪寒",
-  //     "avatar": "",
-  //     "subscribe_time": "2022-12-21 15:52:14",
-  //     "addr": "\/\/",
-  //     "status": "1",
-  //     "is_show": ["1", "2"],
-  //     "companyArr": [{
-  //     	"companyNo": "GS2302231125079621",
-  //     	"companyName": "北京百辰荣达国际科贸有限公司",
-  //     	"info": [1,2]
-  //     }, {
-  //     	"companyNo": "GS2302231323386950",
-  //     	"companyName": "北京泓源广诚国际商贸有限公司",
-  //     	"info": [1,2]
-  //     }, {
-  //     	"companyNo": "GS2304031312553746",
-  //     	"companyName": "北京锦兴弘昌科技有限公司",
-  //     	"info": [1, 2]
-  //     }, {
-  //     	"companyNo": "GS2302231124114965",
-  //     	"companyName": "北京普润心堂商贸有限公司",
-  //     	"info": [1, 2]
-  //     }, {
-  //     	"companyNo": "GS2203161855277894",
-  //     	"companyName": "北京万宇恒通国际科贸有限公司",
-  //     	"info": [1, 2]
-  //     }],
-  //     "addtime": "2023-04-10 18:11:07",
-  //     "updatetime": "2023-05-09 16:22:33"
-  // 	}
-  // }
-  
-  switch(Number(result.code)){
-    case 0:
-      state.companine = result.data.companyArr.filter(({info = []}) => info.includes(2) || info.includes('2'))
-      state.hasPlatformDimension = (result.data.is_show || []).includes(2) || (result.data.is_show || []).includes('2')
-      break
-    default:
-      state.error = true
-      state.message = result.message
-      // openid && removeOpenid()
-      break
-  }
-
-  return state
-}

Some files were not shown because too many files changed in this diff