耗材问题提交,盘点传值问题计算问题
This commit is contained in:
@@ -18,12 +18,13 @@
|
||||
</view>
|
||||
<view class="viewrecordsTop">
|
||||
<view style="padding:32rpx 16rpx;">
|
||||
<view class="">
|
||||
<view @tap="getNewdata('addCountNumber')">
|
||||
增加数量 <text
|
||||
style="color: #76ACF0;font-weight: bold;">{{datas.countList?datas.countList.addCountNumber:''}}</text>
|
||||
</view>
|
||||
<view class="df viewdf">
|
||||
<view style="font-size: 24rpx;border-right: 1px solid #999; width: 142rpx;text-align: center;">
|
||||
<view @tap="getNewdata('stockInNumber')"
|
||||
style="font-size: 24rpx;border-right: 1px solid #999; width: 142rpx;text-align: center;">
|
||||
<view style="color: #999999;">
|
||||
入库
|
||||
</view>
|
||||
@@ -31,7 +32,7 @@
|
||||
{{datas.countList?datas.countList.stockInNumber:''}}
|
||||
</view>
|
||||
</view>
|
||||
<view style="font-size: 24rpx;width: 178rpx;text-align: center;">
|
||||
<view @tap="getNewdata('addNumber')" style="font-size: 24rpx;width: 178rpx;text-align: center;">
|
||||
<view style="color: #999999;">
|
||||
手动增加
|
||||
</view>
|
||||
@@ -42,12 +43,13 @@
|
||||
</view>
|
||||
</view>
|
||||
<view style="padding:32rpx 16rpx;">
|
||||
<view class="">
|
||||
<view class="" @tap="getNewdata('subCountNumber')">
|
||||
减少数量 <text
|
||||
style="color: #52BDA4;font-weight: bold;">{{datas.countList?datas.countList.subCountNumber:0}}</text>
|
||||
</view>
|
||||
<view class="df viewdf">
|
||||
<view style="font-size: 24rpx;border-right: 1px solid #999; width: 112rpx;text-align: center;">
|
||||
<view @tap="getNewdata('subNumber')"
|
||||
style="font-size: 24rpx;border-right: 1px solid #999; width: 112rpx;text-align: center;">
|
||||
<view style="color: #999999;">
|
||||
手动减少
|
||||
</view>
|
||||
@@ -55,7 +57,8 @@
|
||||
{{datas.countList?datas.countList.subNumber:0}}
|
||||
</view>
|
||||
</view>
|
||||
<view style="font-size: 24rpx;border-right: 1px solid #999; width: 82rpx;text-align: center;">
|
||||
<view @tap="getNewdata('stockOutNumber')"
|
||||
style="font-size: 24rpx;border-right: 1px solid #999; width: 82rpx;text-align: center;">
|
||||
<view style="color: #999999;">
|
||||
出库
|
||||
</view>
|
||||
@@ -63,7 +66,7 @@
|
||||
{{datas.countList?datas.countList.stockOutNumber:0}}
|
||||
</view>
|
||||
</view>
|
||||
<view style="font-size: 24rpx;width: 112rpx;text-align: center;">
|
||||
<view @tap="getNewdata('saleNumber')" style="font-size: 24rpx;width: 112rpx;text-align: center;">
|
||||
<view style="color: #999999;">
|
||||
商品消耗
|
||||
</view>
|
||||
@@ -139,7 +142,6 @@
|
||||
let showStatus = ref(false)
|
||||
onMounted(() => {
|
||||
let items = JSON.parse(props.item)
|
||||
// console.log(items, '调试1')
|
||||
getlist()
|
||||
})
|
||||
const refs = getCurrentInstance()
|
||||
@@ -161,6 +163,11 @@
|
||||
return data
|
||||
}
|
||||
let nowStatusIndex = ref(0)
|
||||
let columnName = ref('')
|
||||
let getNewdata = (d) => {
|
||||
columnName.value = d
|
||||
getlist()
|
||||
}
|
||||
|
||||
function changeNowStatusIndex(i) {
|
||||
nowStatusIndex.value = i
|
||||
@@ -171,14 +178,15 @@
|
||||
const statusHeight = computed(() => {
|
||||
return 30 * datas.status.length + 14 + 'px'
|
||||
})
|
||||
let getlist = (conTypeId = "", start, end) => {
|
||||
let getlist = (conTypeId = "", start, end, ) => {
|
||||
let ids = JSON.parse(props.item)
|
||||
// 列表
|
||||
tbConsInfoFlowstock({
|
||||
page: 0,
|
||||
shopId: uni.getStorageSync("shopId"),
|
||||
size: 30,
|
||||
consId: JSON.parse(props.item).conTypeId,
|
||||
column: "addCountNumber",
|
||||
consId: ids.id,
|
||||
column: columnName.value,
|
||||
conTypeId,
|
||||
|
||||
|
||||
@@ -194,6 +202,7 @@
|
||||
conTypeId,
|
||||
startTime: start,
|
||||
endTime: end,
|
||||
consId: JSON.parse(props.item).id,
|
||||
}).then(res => {
|
||||
datas.countList = res
|
||||
})
|
||||
@@ -215,7 +224,6 @@
|
||||
}
|
||||
</style>
|
||||
<style scoped lang="less">
|
||||
|
||||
.viewrecordsType {
|
||||
height: 100rpx;
|
||||
background-color: #fff;
|
||||
|
||||
Reference in New Issue
Block a user