|
@@ -43,23 +43,31 @@
|
|
|
const _this = this
|
|
|
_this.fromPage = options.page
|
|
|
_this.infoData = options.data ? JSON.parse(options.data) : {}
|
|
|
+ console.log(_this.infoData)
|
|
|
if(_this.fromPage == 'bdtq'){
|
|
|
- shelfDetail({ sn: _this.infoData.shelfSn }).then(res => {
|
|
|
- if(res.status == 200 && res.data){
|
|
|
- _this.infoData.shelfName = res.data.shelfName
|
|
|
- _this.printInfo = {
|
|
|
- dealerName: '剪冠汽配西安长ab路店123汽配西安长青二路',
|
|
|
- shelfName: _this.infoData.shelfName || '',
|
|
|
- productCode: _this.infoData.productEntity&&_this.infoData.productEntity.code || '',
|
|
|
- productName: _this.infoData.productEntity&&_this.infoData.productEntity.productName || '',
|
|
|
- shelfPlaceCode: _this.infoData.shelfPlaceCode || '',
|
|
|
- currentInven: 3,
|
|
|
- printDate: '2021-12-21 15:30',
|
|
|
- printUser: '张三',
|
|
|
- barCode: 'dealerSn=1033242&shelfSn=342326735950757888&productCode=RPF2340&shelfPlaceCode=A01&shelfPlaceSn=123213'
|
|
|
- }
|
|
|
- }
|
|
|
- })
|
|
|
+ _this.printInfo = {
|
|
|
+ dealerName: '剪冠汽配西安长ab路店123汽配西安长青二路',
|
|
|
+ shelfName: _this.infoData.shelfName || '',
|
|
|
+ productCode: _this.infoData.productEntity&&_this.infoData.productEntity.code || '',
|
|
|
+ productName: _this.infoData.productEntity&&_this.infoData.productEntity.productName || '',
|
|
|
+ shelfPlaceCode: _this.infoData.shelfPlaceCode || '',
|
|
|
+ currentInven: 3,
|
|
|
+ printDate: '2021-12-21 15:30',
|
|
|
+ printUser: '张三',
|
|
|
+ barCode: 'dealerSn=1033242&shelfSn=342326735950757888&productCode=RPF2340&shelfPlaceCode=A01&shelfPlaceSn=123213'
|
|
|
+ }
|
|
|
+ }else if(_this.fromPage == 'smdy'){
|
|
|
+ _this.printInfo = {
|
|
|
+ dealerName: '剪冠汽配西安长ab路店123汽配西安长青二路',
|
|
|
+ shelfName: _this.infoData.shelfName || '',
|
|
|
+ productCode: _this.infoData.productCode || '',
|
|
|
+ productName: _this.infoData.productName || '',
|
|
|
+ shelfPlaceCode: _this.infoData.shelfPlaceCode || '',
|
|
|
+ currentInven: 3,
|
|
|
+ printDate: '2021-12-21 15:30',
|
|
|
+ printUser: '张三',
|
|
|
+ barCode: 'dealerSn=1033242&shelfSn=342326735950757888&productCode=RPF2340&shelfPlaceCode=A01&shelfPlaceSn=123213'
|
|
|
+ }
|
|
|
}
|
|
|
_this.printNum = _this.fromPage == 'smdy' ? _this.infoData.confirmQty : _this.infoData.qty
|
|
|
},
|