|
@@ -401,7 +401,38 @@
|
|
components: {
|
|
components: {
|
|
inspectInfoPrint
|
|
inspectInfoPrint
|
|
},
|
|
},
|
|
- watch: {},
|
|
|
|
|
|
+ watch: {
|
|
|
|
+ '$route' (to, from) {
|
|
|
|
+ console.log(this)
|
|
|
|
+ this.selectWarehouse()
|
|
|
|
+ var _saomaData = JSON.parse(localStorage.getItem('saoma_data'))
|
|
|
|
+ if(_saomaData){//缓存中有值,证明扫码进来的
|
|
|
|
+ this.warehouseName = _saomaData.warehouseName
|
|
|
|
+ this.warehouseNameChange(this.warehouseName)
|
|
|
|
+ let ids={}
|
|
|
|
+ ids.id = _saomaData.id
|
|
|
|
+ this.listclick(ids)
|
|
|
|
+ if(_saomaData.type == 1){
|
|
|
|
+ this.statusTypetext = '初检'
|
|
|
|
+ }else if(_saomaData.type == 2){
|
|
|
|
+ this.statusTypetext = '确认'
|
|
|
|
+ }else if(_saomaData.type == 3){
|
|
|
|
+ this.statusTypetext = '复检'
|
|
|
|
+ }
|
|
|
|
+ this.serviceManagementType = _saomaData.managementType
|
|
|
|
+ localStorage.removeItem('saoma_data');//第一次进来结束后清除缓存
|
|
|
|
+ }else{
|
|
|
|
+ let _WarehouseName = localStorage.getItem('houseSelfCollect_house1')
|
|
|
|
+ _WarehouseName = JSON.parse(_WarehouseName)
|
|
|
|
+ if (_WarehouseName) {
|
|
|
|
+ this.warehouseNameChange(_WarehouseName.value)
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ // 对路由变化作出响应...
|
|
|
|
+ // this.routerParms.id=to.query.id
|
|
|
|
+ // this.reload()
|
|
|
|
+ },
|
|
|
|
+},
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
//分页
|
|
//分页
|
|
@@ -531,7 +562,7 @@
|
|
// searchKeyWord:''
|
|
// searchKeyWord:''
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- activated(){
|
|
|
|
|
|
+ activated(){debugger
|
|
this.selectWarehouse()
|
|
this.selectWarehouse()
|
|
var _saomaData = JSON.parse(localStorage.getItem('saoma_data'))
|
|
var _saomaData = JSON.parse(localStorage.getItem('saoma_data'))
|
|
if(_saomaData){//缓存中有值,证明扫码进来的
|
|
if(_saomaData){//缓存中有值,证明扫码进来的
|
|
@@ -557,7 +588,9 @@
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
},
|
|
-
|
|
|
|
|
|
+ mounted (){
|
|
|
|
+ debugger
|
|
|
|
+ },
|
|
methods: {
|
|
methods: {
|
|
binNumberChange(e){
|
|
binNumberChange(e){
|
|
for (let i = 0; i < this.positionInfos.length; i++) {
|
|
for (let i = 0; i < this.positionInfos.length; i++) {
|