|
@@ -1,36 +1,30 @@
|
|
|
<template>
|
|
|
<div class="new-report" v-loading="state.loading" style="min-height:300px">
|
|
|
<div v-if="!state.error && isShow">
|
|
|
- <div style="display:flex;justify-content:flex-end">
|
|
|
+ <!-- <div style="display:flex;justify-content:flex-end">
|
|
|
<period-date-picker :start="date[0]" :end="date[1]" size="mini" width="150px" @timeReturned="time($event)" />
|
|
|
- </div>
|
|
|
+ </div> -->
|
|
|
|
|
|
<el-row :gutter="20">
|
|
|
<el-col :xs="24">
|
|
|
- <p class="title">1.无地址销售订单统计</p>
|
|
|
- <not-deliver-good :date="date" />
|
|
|
+ <not-deliver-good :title="'1.无地址销售订单统计'" :date="date" />
|
|
|
</el-col>
|
|
|
|
|
|
-
|
|
|
- <!-- :sm="12" :md="12" :lg="12" :xl="12" -->
|
|
|
<el-col :xs="24">
|
|
|
- <p class="title">2.发货工单未发货时效统计</p>
|
|
|
- <send-order :date="date" />
|
|
|
+ <!-- <p class="title">2.发货工单未发货时效统计</p> -->
|
|
|
+ <send-order :title="'2.发货工单未发货时效统计'" :date="date" />
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :xs="24">
|
|
|
- <p class="title">3.待采购备货统计</p>
|
|
|
- <send-exp :date="date" />
|
|
|
+ <!-- <p class="title">3.待采购备货统计</p> -->
|
|
|
+ <send-exp :title="'3.待采购备货统计'" :date="date" />
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :xs="24">
|
|
|
- <p class="title">4.当日库存销售统计</p>
|
|
|
- <the-sales :date="date" />
|
|
|
+ <!-- <p class="title">4.当日库存销售统计</p> -->
|
|
|
+ <the-sales :title="'4.当日库存销售统计'" :date="date" />
|
|
|
</el-col>
|
|
|
-
|
|
|
- <!-- :sm="12" :md="12" :lg="12" :xl="12"> -->
|
|
|
</el-row>
|
|
|
-
|
|
|
</div>
|
|
|
|
|
|
<template v-else-if="!state.loading">
|
|
@@ -87,6 +81,7 @@ export default {
|
|
|
};
|
|
|
},
|
|
|
mounted() {
|
|
|
+ document.body.style.position = "static"
|
|
|
document.title = "库存情况"
|
|
|
if(!getParameterByName('code')){ this.login() }else{
|
|
|
this.requestUserinfo()
|
|
@@ -121,54 +116,55 @@ export default {
|
|
|
this.state.loading = true;
|
|
|
const openid = getOpenid()
|
|
|
const code = getParameterByName('code')
|
|
|
- const result = await userRequest.userinfo({
|
|
|
- ...( openid ? { openid } : { code })
|
|
|
- })
|
|
|
-
|
|
|
- // 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", "4", "5"],
|
|
|
- // "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"
|
|
|
- // }
|
|
|
- // }
|
|
|
+ // const result = await userRequest.userinfo({
|
|
|
+ // ...( openid ? { openid } : { code })
|
|
|
+ // })
|
|
|
+
|
|
|
+ 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", "4", "5"],
|
|
|
+ "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"
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
this.state.loading = false
|
|
|
switch(Number(result.code)){
|
|
|
case 0:
|
|
|
this.isShow = (result.data.is_show || []).includes(5) || (result.data.is_show || []).includes('5')
|
|
|
+ console.log(this.isShow)
|
|
|
setOpenid(result.data.openid)
|
|
|
break
|
|
|
default:
|
|
@@ -193,6 +189,7 @@ export default {
|
|
|
.new-report {
|
|
|
padding: 10px;
|
|
|
box-sizing: border-box;
|
|
|
+ position: static;
|
|
|
|
|
|
.title {
|
|
|
padding-left: 5px;
|