修复库存记录app不展示问题

This commit is contained in:
YeMingfei666 2024-10-17 11:36:57 +08:00
parent f502305267
commit 6ee962930e
3 changed files with 14 additions and 26 deletions

View File

@ -139,7 +139,10 @@
goods: {
type: Object,
default: () => {
skuList: []
return{
id:'',
skuList: []
}
}
}
})
@ -153,6 +156,7 @@
]
})
function toRecodes(){
console.log(props.goods.id);
go.to('PAGES_PRODUCT_INVOICING_LIST',{
productId:props.goods.id
})

View File

@ -83,7 +83,6 @@
</template>
<script setup>
import myButton from '@/components/my-components/my-button';
import go from '@/commons/utils/go.js'
import color from '@/commons/color.js'
@ -108,7 +107,7 @@
}
</script>
<style lang="scss">
<style lang="scss" scoped>
.text-ming-w{
min-width: calc(28rpx * 5);
}

View File

@ -1,6 +1,6 @@
<template>
<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="u-flex ">
<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 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 @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">
@ -63,7 +53,7 @@
</view> -->
<template v-if="pageData.list.length">
<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>
<my-pagination :size="pageData.size" :totalElements="pageData.totalElements"
@change="pageChange"></my-pagination>
@ -77,12 +67,10 @@
</view>
</view>
<my-date-pickerview @confirm="datePickerConfirm" ref="datePicker"></my-date-pickerview>
<my-mask ref="mask" @close="hideType"></my-mask>
</view>
</template>
<script setup>
@ -94,9 +82,7 @@
onPullDownRefresh
} from '@dcloudio/uni-app';
import color from '@/commons/color';
import listItem from './components/list-item';
import myMask from '@/components/my-components/my-mask'
import myDatePickerview from '@/components/my-components/my-date-pickerview'
import myListItem from './components/list-item.vue';
import {
ref,
reactive,
@ -218,7 +204,6 @@
shopId:uni.getStorageSync('shopId'),
createdAt:[]
},
productId:'',
totalElements: 0,
list: [],
status: 'noMore',
@ -229,7 +214,6 @@
const createdAt=(filters.time.start&&filters.time.end)?[filters.time.start,filters.time.end ]:[]
const res = await $getProductStockDetail({
...pageData.query,
productId: pageData.productId,
type:types.active!==''?types.list[types.active].value:'',
createdAt
})
@ -239,7 +223,7 @@
}
async function getSum(){
const res = await $getProductStockDetailSum({
productId: pageData.productId,
productId: pageData.query.productId
})
pageData.changeSum = res.exchange
}
@ -249,7 +233,8 @@
})
onLoad(opt => {
pageData.query.productId = opt ? opt.productId : ''
console.log(opt);
Object.assign(pageData.query,opt)
init()
// getSum()
})