修复库存记录app不展示问题
This commit is contained in:
parent
f502305267
commit
6ee962930e
|
|
@ -139,7 +139,10 @@
|
||||||
goods: {
|
goods: {
|
||||||
type: Object,
|
type: Object,
|
||||||
default: () => {
|
default: () => {
|
||||||
skuList: []
|
return{
|
||||||
|
id:'',
|
||||||
|
skuList: []
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
@ -153,6 +156,7 @@
|
||||||
]
|
]
|
||||||
})
|
})
|
||||||
function toRecodes(){
|
function toRecodes(){
|
||||||
|
console.log(props.goods.id);
|
||||||
go.to('PAGES_PRODUCT_INVOICING_LIST',{
|
go.to('PAGES_PRODUCT_INVOICING_LIST',{
|
||||||
productId:props.goods.id
|
productId:props.goods.id
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -83,7 +83,6 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import myButton from '@/components/my-components/my-button';
|
|
||||||
import go from '@/commons/utils/go.js'
|
import go from '@/commons/utils/go.js'
|
||||||
import color from '@/commons/color.js'
|
import color from '@/commons/color.js'
|
||||||
|
|
||||||
|
|
@ -108,7 +107,7 @@
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss" scoped>
|
||||||
.text-ming-w{
|
.text-ming-w{
|
||||||
min-width: calc(28rpx * 5);
|
min-width: calc(28rpx * 5);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
<template>
|
<template>
|
||||||
<view class="color-333 u-font-28">
|
<view class="color-333 u-font-28">
|
||||||
<up-sticky offset-top="0">
|
<up-sticky :offset-top="0">
|
||||||
<view class=" bg-fff u-flex u-p-l-30 u-row-between">
|
<view class=" bg-fff u-flex u-p-l-30 u-row-between">
|
||||||
<view class="u-flex ">
|
<view class="u-flex ">
|
||||||
<view class="u-flex u-p-t-30 u-p-b-30 u-flex-1 u-row-center" @tap="timeToggle">
|
<view class="u-flex u-p-t-30 u-p-b-30 u-flex-1 u-row-center" @tap="timeToggle">
|
||||||
|
|
@ -18,16 +18,6 @@
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<!-- <view style="width: 164rpx;"></view> -->
|
|
||||||
<!-- <view class="search-box">
|
|
||||||
<view class="search-btn u-flex" @tap="showSearch" :style="{width:search.show?'694rpx':'164rpx'}">
|
|
||||||
<image src="@/static/iconImg/icon-search.svg" class="input-icon" />
|
|
||||||
<view class="u-flex-1 u-p-l-10"><input v-model="search.keyword" @confirm="searchConfirm" type="text"
|
|
||||||
placeholder-style="font-size:28rpx;" placeholder="搜索" /></view>
|
|
||||||
<view @tap.stop="hideSearch" v-if="search.show">取消</view>
|
|
||||||
</view>
|
|
||||||
</view> -->
|
|
||||||
|
|
||||||
<view :style="{height:types.show?typesHeight:0}" class="tranistion types overflow-hide">
|
<view :style="{height:types.show?typesHeight:0}" class="tranistion types overflow-hide">
|
||||||
<view @tap="changeTypesActive(index)" class="u-flex u-p-l-30 lh30 u-p-r-30 u-row-between"
|
<view @tap="changeTypesActive(index)" class="u-flex u-p-l-30 lh30 u-p-r-30 u-row-between"
|
||||||
v-for="(item,index) in types.list" :key="index">
|
v-for="(item,index) in types.list" :key="index">
|
||||||
|
|
@ -63,7 +53,7 @@
|
||||||
</view> -->
|
</view> -->
|
||||||
<template v-if="pageData.list.length">
|
<template v-if="pageData.list.length">
|
||||||
<view class="u-m-b-28 " v-for="(item,index) in pageData.list" :key="index">
|
<view class="u-m-b-28 " v-for="(item,index) in pageData.list" :key="index">
|
||||||
<list-item :data="item"></list-item>
|
<my-list-item :data="item" ></my-list-item>
|
||||||
</view>
|
</view>
|
||||||
<my-pagination :size="pageData.size" :totalElements="pageData.totalElements"
|
<my-pagination :size="pageData.size" :totalElements="pageData.totalElements"
|
||||||
@change="pageChange"></my-pagination>
|
@change="pageChange"></my-pagination>
|
||||||
|
|
@ -77,12 +67,10 @@
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</view>
|
|
||||||
<my-date-pickerview @confirm="datePickerConfirm" ref="datePicker"></my-date-pickerview>
|
<my-date-pickerview @confirm="datePickerConfirm" ref="datePicker"></my-date-pickerview>
|
||||||
<my-mask ref="mask" @close="hideType"></my-mask>
|
<my-mask ref="mask" @close="hideType"></my-mask>
|
||||||
|
</view>
|
||||||
|
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
|
|
@ -94,9 +82,7 @@
|
||||||
onPullDownRefresh
|
onPullDownRefresh
|
||||||
} from '@dcloudio/uni-app';
|
} from '@dcloudio/uni-app';
|
||||||
import color from '@/commons/color';
|
import color from '@/commons/color';
|
||||||
import listItem from './components/list-item';
|
import myListItem from './components/list-item.vue';
|
||||||
import myMask from '@/components/my-components/my-mask'
|
|
||||||
import myDatePickerview from '@/components/my-components/my-date-pickerview'
|
|
||||||
import {
|
import {
|
||||||
ref,
|
ref,
|
||||||
reactive,
|
reactive,
|
||||||
|
|
@ -218,7 +204,6 @@
|
||||||
shopId:uni.getStorageSync('shopId'),
|
shopId:uni.getStorageSync('shopId'),
|
||||||
createdAt:[]
|
createdAt:[]
|
||||||
},
|
},
|
||||||
productId:'',
|
|
||||||
totalElements: 0,
|
totalElements: 0,
|
||||||
list: [],
|
list: [],
|
||||||
status: 'noMore',
|
status: 'noMore',
|
||||||
|
|
@ -229,7 +214,6 @@
|
||||||
const createdAt=(filters.time.start&&filters.time.end)?[filters.time.start,filters.time.end ]:[]
|
const createdAt=(filters.time.start&&filters.time.end)?[filters.time.start,filters.time.end ]:[]
|
||||||
const res = await $getProductStockDetail({
|
const res = await $getProductStockDetail({
|
||||||
...pageData.query,
|
...pageData.query,
|
||||||
productId: pageData.productId,
|
|
||||||
type:types.active!==''?types.list[types.active].value:'',
|
type:types.active!==''?types.list[types.active].value:'',
|
||||||
createdAt
|
createdAt
|
||||||
})
|
})
|
||||||
|
|
@ -239,7 +223,7 @@
|
||||||
}
|
}
|
||||||
async function getSum(){
|
async function getSum(){
|
||||||
const res = await $getProductStockDetailSum({
|
const res = await $getProductStockDetailSum({
|
||||||
productId: pageData.productId,
|
productId: pageData.query.productId
|
||||||
})
|
})
|
||||||
pageData.changeSum = res.exchange
|
pageData.changeSum = res.exchange
|
||||||
}
|
}
|
||||||
|
|
@ -249,7 +233,8 @@
|
||||||
})
|
})
|
||||||
|
|
||||||
onLoad(opt => {
|
onLoad(opt => {
|
||||||
pageData.query.productId = opt ? opt.productId : ''
|
console.log(opt);
|
||||||
|
Object.assign(pageData.query,opt)
|
||||||
init()
|
init()
|
||||||
// getSum()
|
// getSum()
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue