|
@@ -25,6 +25,9 @@
|
|
|
<view class="pname">
|
|
|
{{productEntity.name}}
|
|
|
</view>
|
|
|
+ <view>
|
|
|
+ 当前库存:{{productEntity.currQty}}
|
|
|
+ </view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</u-form-item>
|
|
@@ -93,7 +96,7 @@
|
|
|
this.shelfSn = this.nowData.shelfSn
|
|
|
this.type = opts.type
|
|
|
this.shelfPlaceCode = this.nowData.shelfPlaceCode||''
|
|
|
-
|
|
|
+ console.log(this.nowData)
|
|
|
// 选在产品
|
|
|
uni.$on('addProductToHw',function(data){
|
|
|
console.log(data)
|
|
@@ -155,10 +158,12 @@
|
|
|
getProductInfo () {
|
|
|
shelfProductDetail({ shelfPlaceSn: this.nowData && this.nowData.shelfPlaceSn }).then(res => {
|
|
|
if (res.status == 200 && res.data) {
|
|
|
+ console.log(res.data)
|
|
|
this.productEntity = {
|
|
|
code: res.data.productCode,
|
|
|
name: res.data.productName,
|
|
|
- productMsg: res.data.productImageUrl
|
|
|
+ productMsg: res.data.productImageUrl,
|
|
|
+ currQty: res.data.currQty
|
|
|
}
|
|
|
this.form.productSn = res.data.productSn
|
|
|
this.bakProductSn = res.data.productSn
|