|
@ -76,17 +76,10 @@ export default{
|
|
|
allNum: 0,
|
|
|
curCargo: '',
|
|
|
|
|
|
deviceInfo: {device: ''},
|
|
|
deviceId: this.$route.query.deviceId,
|
|
|
list: [],
|
|
|
activeKey: 0,
|
|
|
curItem: [],
|
|
|
openCount: 0,
|
|
|
closeCount: 0,
|
|
|
faultCount: 0,
|
|
|
outDetailList: [],
|
|
|
deviceDrugList: [],
|
|
|
showDeviceDrug: true,
|
|
|
repAll: true,
|
|
|
outDetailId: this.$route.query.outDetailId || ''
|
|
|
}
|
|
@ -105,7 +98,6 @@ export default{
|
|
|
},
|
|
|
created() {
|
|
|
this.initPage()
|
|
|
// this.findDeviceById()
|
|
|
},
|
|
|
methods:{
|
|
|
$refreshData(p){
|
|
@ -188,22 +180,6 @@ export default{
|
|
|
console.error(err)
|
|
|
})
|
|
|
},
|
|
|
findDeviceById(){
|
|
|
let p = {
|
|
|
deviceId: this.deviceId
|
|
|
}
|
|
|
console.log('params', p)
|
|
|
medicineAbinetApi
|
|
|
.findDeviceById(p)
|
|
|
.then(res=>{
|
|
|
console.log('findDeviceById', res)
|
|
|
this.$toast.clear()
|
|
|
this.deviceInfo = res.obj
|
|
|
})
|
|
|
.catch(err=>{
|
|
|
console.error(err)
|
|
|
})
|
|
|
},
|
|
|
onChange(isActive, item){
|
|
|
var num = this.accessItemNum(item)
|
|
|
item.isActive = isActive
|