|
@ -6,7 +6,7 @@ |
|
|
<view ref="topContent" class="top" > |
|
|
<view ref="topContent" class="top" > |
|
|
<com-blank-view @goScan='openScanPopup' v-if="itemCode==''"></com-blank-view> |
|
|
<com-blank-view @goScan='openScanPopup' v-if="itemCode==''"></com-blank-view> |
|
|
<item-info v-if="itemDetail" :itemdetail='itemDetail'></item-info> |
|
|
<item-info v-if="itemDetail" :itemdetail='itemDetail'></item-info> |
|
|
<z-tabs v-if="itemCode" :list="tabList" @change="tabChange" /> |
|
|
<z-tabs v-if="itemCode" :current="tabIndex" :list="tabList" @change="tabChange" /> |
|
|
</view> |
|
|
</view> |
|
|
|
|
|
|
|
|
<view style="width:100%;" :style="{'margin-top':topHeight+'px'}"> |
|
|
<view style="width:100%;" :style="{'margin-top':topHeight+'px'}"> |
|
@ -18,7 +18,18 @@ |
|
|
<view class="" style="font-size:35rpx; "> |
|
|
<view class="" style="font-size:35rpx; "> |
|
|
({{index+1}}) |
|
|
({{index+1}}) |
|
|
</view> |
|
|
</view> |
|
|
<comItemDetailCard :isShowPack="false" :dataContent="item" style='margin: 10rpx;'> |
|
|
<comItemDetailCard |
|
|
|
|
|
:isShowPack="item.isShowPack" |
|
|
|
|
|
:isShowWarehouseCode="item.isShowWarehouseCode" |
|
|
|
|
|
:isShowJobNumber="item.isShowJobNumber" |
|
|
|
|
|
:isShowBusinessType="item.isShowBusinessType" |
|
|
|
|
|
:isShowTransactionType="item.isShowTransactionType" |
|
|
|
|
|
:isShowInventoryAction="item.isShowInventoryAction" |
|
|
|
|
|
:isShowRecordNumber="item.isShowRecordNumber" |
|
|
|
|
|
:isShowNumber="item.isShowNumber" |
|
|
|
|
|
:isShowWorker="item.isShowWorker" |
|
|
|
|
|
:dataContent="item" |
|
|
|
|
|
style='margin: 10rpx;'> |
|
|
</comItemDetailCard> |
|
|
</comItemDetailCard> |
|
|
</view> |
|
|
</view> |
|
|
|
|
|
|
|
@ -141,6 +152,7 @@ |
|
|
|
|
|
|
|
|
console.log('topContent',this.$refs.topContent) |
|
|
console.log('topContent',this.$refs.topContent) |
|
|
}) |
|
|
}) |
|
|
|
|
|
this.tabIndex=0; |
|
|
this.tabChange(0) |
|
|
this.tabChange(0) |
|
|
} else { |
|
|
} else { |
|
|
this.showMessage('未查找到物料【' + code + '】'); |
|
|
this.showMessage('未查找到物料【' + code + '】'); |
|
@ -153,7 +165,7 @@ |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
// 汇总 |
|
|
// 库存余额 |
|
|
getBalanceItem(pageNo, pageSize, type) { |
|
|
getBalanceItem(pageNo, pageSize, type) { |
|
|
uni.showLoading({ |
|
|
uni.showLoading({ |
|
|
title: "加载中...", |
|
|
title: "加载中...", |
|
@ -201,6 +213,10 @@ |
|
|
uni.stopPullDownRefresh(); |
|
|
uni.stopPullDownRefresh(); |
|
|
} |
|
|
} |
|
|
var list = res.data.list; |
|
|
var list = res.data.list; |
|
|
|
|
|
list.forEach(item=>{ |
|
|
|
|
|
item.isShowPack=true |
|
|
|
|
|
item.isShowWarehouseCode=true |
|
|
|
|
|
}) |
|
|
this.totalCount = res.data.total |
|
|
this.totalCount = res.data.total |
|
|
this.loadingType = "loadmore"; |
|
|
this.loadingType = "loadmore"; |
|
|
if (list == null || list.length == 0) { |
|
|
if (list == null || list.length == 0) { |
|
@ -216,7 +232,7 @@ |
|
|
this.showMessage(error); |
|
|
this.showMessage(error); |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
//明细 |
|
|
//库存事务 |
|
|
getTransactionByItemCode(pageNo, pageSize, type) { |
|
|
getTransactionByItemCode(pageNo, pageSize, type) { |
|
|
uni.showLoading({ |
|
|
uni.showLoading({ |
|
|
title: "加载中...", |
|
|
title: "加载中...", |
|
@ -264,6 +280,16 @@ |
|
|
uni.stopPullDownRefresh(); |
|
|
uni.stopPullDownRefresh(); |
|
|
} |
|
|
} |
|
|
var list = res.data.list; |
|
|
var list = res.data.list; |
|
|
|
|
|
list.forEach(item=>{ |
|
|
|
|
|
item.isShowPack=true |
|
|
|
|
|
item.isShowWarehouseCode=true |
|
|
|
|
|
item.isShowBusinessType=true |
|
|
|
|
|
item.isShowTransactionType =true |
|
|
|
|
|
item.isShowInventoryAction=true |
|
|
|
|
|
item.isShowRecordNumber=true |
|
|
|
|
|
item.isShowNumber=true |
|
|
|
|
|
item.isShowWorker=true |
|
|
|
|
|
}) |
|
|
this.totalCount = res.data.total |
|
|
this.totalCount = res.data.total |
|
|
this.loadingType = "loadmore"; |
|
|
this.loadingType = "loadmore"; |
|
|
if (list == null || list.length == 0) { |
|
|
if (list == null || list.length == 0) { |
|
@ -337,6 +363,12 @@ |
|
|
uni.stopPullDownRefresh(); |
|
|
uni.stopPullDownRefresh(); |
|
|
} |
|
|
} |
|
|
var list = res.data.list; |
|
|
var list = res.data.list; |
|
|
|
|
|
list.forEach(item=>{ |
|
|
|
|
|
item.isShowPack=false |
|
|
|
|
|
item.isShowJobNumber=true |
|
|
|
|
|
item.isShowBusinessType=true |
|
|
|
|
|
item.isShowWarehouseCode=true |
|
|
|
|
|
}) |
|
|
this.totalCount = res.data.total |
|
|
this.totalCount = res.data.total |
|
|
this.loadingType = "loadmore"; |
|
|
this.loadingType = "loadmore"; |
|
|
if (list == null || list.length == 0) { |
|
|
if (list == null || list.length == 0) { |
|
@ -398,6 +430,12 @@ |
|
|
uni.stopPullDownRefresh(); |
|
|
uni.stopPullDownRefresh(); |
|
|
} |
|
|
} |
|
|
var list = res.data.list; |
|
|
var list = res.data.list; |
|
|
|
|
|
list.forEach(item=>{ |
|
|
|
|
|
item.isShowPack=true |
|
|
|
|
|
item.isShowJobNumber=true |
|
|
|
|
|
item.isShowBusinessType=true |
|
|
|
|
|
item.isShowWarehouseCode=true |
|
|
|
|
|
}) |
|
|
this.totalCount = res.data.total |
|
|
this.totalCount = res.data.total |
|
|
this.loadingType = "loadmore"; |
|
|
this.loadingType = "loadmore"; |
|
|
if (list == null || list.length == 0) { |
|
|
if (list == null || list.length == 0) { |
|
|