|
@ -39,24 +39,24 @@ |
|
|
</view> |
|
|
</view> |
|
|
<view class="split_line"></view> |
|
|
<view class="split_line"></view> |
|
|
</view> |
|
|
</view> |
|
|
<scroll-view scroll-x="true" v-if="tableData.length>0" style="width: 330px; display: flex; align-items: center; justify-content: center; "> |
|
|
<scroll-view scroll-x="true" v-if="tableData.length>0" |
|
|
<view style="width: 330px; display: flex;justify-content: center; background-color: #fff; padding-bottom: 150rpx;"> |
|
|
style="width: 330px; display: flex; align-items: center; justify-content: center; "> |
|
|
|
|
|
<view |
|
|
|
|
|
style="width: 330px; display: flex;justify-content: center; background-color: #fff; padding-bottom: 150rpx;"> |
|
|
<uni-table border stripe emptyText="暂无更多数据"> |
|
|
<uni-table border stripe emptyText="暂无更多数据"> |
|
|
<!-- 表头行 --> |
|
|
<!-- 表头行 --> |
|
|
<uni-tr> |
|
|
<uni-tr> |
|
|
<uni-th width="60" style="font-weight: 800;" align="left">序号</uni-th> |
|
|
|
|
|
<uni-th width="60" align="left">批次</uni-th> |
|
|
<uni-th width="60" align="left">批次</uni-th> |
|
|
<uni-th width="50" align="left">库位</uni-th> |
|
|
<uni-th width="100" align="left">库位</uni-th> |
|
|
<uni-th width="60" align="left">状态</uni-th> |
|
|
<uni-th width="60" align="left">状态</uni-th> |
|
|
<uni-th width="120" align="left">数量</uni-th> |
|
|
<uni-th width="120" align="left">数量</uni-th> |
|
|
</uni-tr> |
|
|
</uni-tr> |
|
|
<!-- 表格数据行 --> |
|
|
<!-- 表格数据行 --> |
|
|
<uni-tr v-for="(item, index) in tableData" :key="index"> |
|
|
<uni-tr v-for="(item, index) in tableData" :key="index"> |
|
|
<uni-td>{{index+1}}</uni-td> |
|
|
|
|
|
<uni-td>{{item.batch}}</uni-td> |
|
|
<uni-td>{{item.batch}}</uni-td> |
|
|
<uni-td>{{item.locationCode}}</uni-td> |
|
|
<uni-td>{{item.locationCode}}</uni-td> |
|
|
<uni-td>{{statusDesc(item.inventoryStatus)}}</uni-td> |
|
|
<uni-td>{{statusDesc(item.inventoryStatus)}}</uni-td> |
|
|
<uni-td>{{item.qty}}</uni-td> |
|
|
<uni-td>{{item.totalQty}}</uni-td> |
|
|
</uni-tr> |
|
|
</uni-tr> |
|
|
|
|
|
|
|
|
</uni-table> |
|
|
</uni-table> |
|
@ -80,6 +80,7 @@ |
|
|
</view> |
|
|
</view> |
|
|
|
|
|
|
|
|
</uni-drawer> |
|
|
</uni-drawer> |
|
|
|
|
|
<comMessage ref="comMessage"></comMessage> |
|
|
</view> |
|
|
</view> |
|
|
</template> |
|
|
</template> |
|
|
|
|
|
|
|
@ -218,6 +219,7 @@ |
|
|
clearItemCode() { |
|
|
clearItemCode() { |
|
|
this.itemCode = "" |
|
|
this.itemCode = "" |
|
|
this.itemCodeResult = [] |
|
|
this.itemCodeResult = [] |
|
|
|
|
|
this.tableData =[] |
|
|
}, |
|
|
}, |
|
|
onConfirmItemCode() { |
|
|
onConfirmItemCode() { |
|
|
if (!this.itemCode) { |
|
|
if (!this.itemCode) { |
|
@ -239,6 +241,7 @@ |
|
|
this.itemCodeResult = res.data.list |
|
|
this.itemCodeResult = res.data.list |
|
|
} |
|
|
} |
|
|
} else { |
|
|
} else { |
|
|
|
|
|
uni.hideLoading() |
|
|
this.showErrorMessage("未查找到物料[" + this.itemCode + "]") |
|
|
this.showErrorMessage("未查找到物料[" + this.itemCode + "]") |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -255,10 +258,15 @@ |
|
|
getBalanceByBusinessType(params).then(res => { |
|
|
getBalanceByBusinessType(params).then(res => { |
|
|
uni.hideLoading() |
|
|
uni.hideLoading() |
|
|
if (res.data && res.data.length > 0) { |
|
|
if (res.data && res.data.length > 0) { |
|
|
console.log(this.tableData) |
|
|
|
|
|
this.tableData = res.data |
|
|
this.tableData = res.data |
|
|
} else { |
|
|
} else { |
|
|
this.showErrorMessage("发料中未查询到物料号["+itemCode+"]的库存") |
|
|
var hint ="" |
|
|
|
|
|
if(businessType=="Issue"){ |
|
|
|
|
|
hint="发料中" |
|
|
|
|
|
}else if(businessType=="Repleinment"){ |
|
|
|
|
|
hint="补料中" |
|
|
|
|
|
} |
|
|
|
|
|
this.showErrorMessage(hint+"未查询到物料号[" + itemCode + "]的库存") |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
}).catch(error => { |
|
|
}).catch(error => { |
|
|