|
@@ -67,7 +67,6 @@
|
|
|
confirmModal: false,
|
|
|
productInfo: null,
|
|
|
shelfPlaceCode: '',
|
|
|
- shelfPlaceSn: '',
|
|
|
shelfCartSn: '',
|
|
|
curQty: '',
|
|
|
scleft: 0
|
|
@@ -124,14 +123,11 @@
|
|
|
if(ret.shelfCartApi){
|
|
|
this.curQty = ret.shelfCartApi.qty
|
|
|
this.scleft = this.curQty * 30
|
|
|
- this.shelfPlaceSn = ret.shelfCartApi.shelfPlaceSn
|
|
|
this.shelfCartSn = ret.shelfCartApi.shelfCartSn
|
|
|
- this.shelfPlaceCode = ret.shelfCartApi.shelfPlaceCode
|
|
|
}else{
|
|
|
- this.shelfPlaceSn = ''
|
|
|
this.curQty = ''
|
|
|
this.scleft = 0
|
|
|
- this.shelfCartSn = ''
|
|
|
+ this.shelfCartSn =''
|
|
|
}
|
|
|
setTimeout(()=>{
|
|
|
this.barcode.start()
|
|
@@ -147,13 +143,13 @@
|
|
|
uni.showLoading({
|
|
|
title: '正在保存...'
|
|
|
})
|
|
|
- const a = this.productInfo.shelfCartApi
|
|
|
+ const a = this.productInfo.shelfCartApi || this.productInfo.shelfProductApi
|
|
|
const params = {
|
|
|
shelfSn: this.shelfSn,
|
|
|
shelfName: this.shelfName,
|
|
|
- shelfTierCode: a && a.shelfTierCode ? a.shelfTierCode : this.layer,
|
|
|
- shelfPlaceSn: this.shelfPlaceSn,
|
|
|
- shelfPlaceCode: this.shelfPlaceCode,
|
|
|
+ shelfTierCode: a ? a.shelfTierCode : this.layer,
|
|
|
+ shelfPlaceSn: a ? a.shelfPlaceSn : '',
|
|
|
+ shelfPlaceCode: a?a.shelfPlaceCode:this.shelfPlaceCode,
|
|
|
productSn: this.productInfo.productSn,
|
|
|
productCode: this.productInfo.code,
|
|
|
qty: nums,
|