|
|
@@ -1,19 +1,6 @@
|
|
|
<template>
|
|
|
+<view class="app-content">
|
|
|
<view class="ex-page">
|
|
|
- <view class="top-bar" v-if="false">
|
|
|
- <DorpdownSelect class="bar"
|
|
|
- :menuObj="menuTimeObj"
|
|
|
- :typeTime="true"
|
|
|
- :selectItemId.sync="selectTimeId"
|
|
|
- :typeSelect="1" top="0upx"
|
|
|
- @selectSussess="selectSussess" />
|
|
|
-
|
|
|
- <DorpdownSelect class="bar"
|
|
|
- :menuObj.sync="menuObj"
|
|
|
- :selectItemId.sync="shopId"
|
|
|
- top="0"
|
|
|
- @selectSussess="selectShopSussess" />
|
|
|
- </view>
|
|
|
<scroll-view scroll-y scroll-with-animation class="main-view">
|
|
|
<view class="space-view ex-table">
|
|
|
<block v-if="!$util.isEmpty(list.data)">
|
|
|
@@ -46,17 +33,8 @@
|
|
|
</block>
|
|
|
</view>
|
|
|
</scroll-view>
|
|
|
-
|
|
|
- <!--时间段选择-->
|
|
|
- <rangeDatePick
|
|
|
- :show="isShow"
|
|
|
- start="2000-01-01"
|
|
|
- end="2200-12-01"
|
|
|
- :value="customizationTime"
|
|
|
- @change="timeChange"
|
|
|
- @cancel="timeCancel"
|
|
|
- themeColor="#4C83D6" fields="day"></rangeDatePick>
|
|
|
</view>
|
|
|
+</view>
|
|
|
</template>
|
|
|
<script>
|
|
|
const Month = (new Date().getMonth()+1)<10?'0'+(new Date().getMonth()+1):new Date().getMonth()+1
|
|
|
@@ -66,11 +44,9 @@ import AppWrapperEmpty from "@/components/app-wrapper-empty";
|
|
|
import SelectList from "@/components/plugin/selectList";
|
|
|
import { getStockDetailApi } from "@/api/storehouse/stock";
|
|
|
import { list,selectShop } from "@/mixins";
|
|
|
-import DorpdownSelect from "@/components/module/shopSelect";
|
|
|
-import rangeDatePick from '@/components/pyh-rdtpicker/pyh-rdtpicker.vue';
|
|
|
import {mapActions, mapGetters} from "vuex";
|
|
|
export default {
|
|
|
- components: { SelectList, AppWrapperEmpty,DorpdownSelect,rangeDatePick },
|
|
|
+ components: { SelectList, AppWrapperEmpty},
|
|
|
mixins: [list,selectShop],
|
|
|
computed: { ...mapGetters(["getDictionariesInfo","getLoginInfo"]) },
|
|
|
data() {
|
|
|
@@ -166,10 +142,12 @@ export default {
|
|
|
this.params.id = e.id;
|
|
|
let dateDefaultOption = [];
|
|
|
let list = this.getDictionariesInfo.dateDefaultOption;
|
|
|
- for (let i=0;i<list.length;i++){
|
|
|
- dateDefaultOption.push({name:list[i].name,id:list[i].value})
|
|
|
+ if(!this.$util.isEmpty(list)){
|
|
|
+ for (let i=0;i<list.length;i++){
|
|
|
+ dateDefaultOption.push({name:list[i].name,id:list[i].value})
|
|
|
+ }
|
|
|
+ this.menuTimeObj = {title:'今天',titleChild:'时间',list: dateDefaultOption}
|
|
|
}
|
|
|
- this.menuTimeObj = {title:'今天',titleChild:'时间',list: dateDefaultOption};
|
|
|
this.shopId = this.getLoginInfo.shopId;
|
|
|
},
|
|
|
onReachBottom() {
|