|
|
|
@ -484,11 +484,11 @@
|
|
|
|
},
|
|
|
|
},
|
|
|
|
onReady() {},
|
|
|
|
onReady() {},
|
|
|
|
methods: {
|
|
|
|
methods: {
|
|
|
|
async init(){
|
|
|
|
init(){
|
|
|
|
await this.getVisitArea()
|
|
|
|
this.getVisitArea()
|
|
|
|
await this.getVisitTime()
|
|
|
|
this.getVisitTime()
|
|
|
|
await this.getReason()
|
|
|
|
this.getReason()
|
|
|
|
await this.getPark()
|
|
|
|
this.getPark()
|
|
|
|
},
|
|
|
|
},
|
|
|
|
adminListShowOpen(type) {
|
|
|
|
adminListShowOpen(type) {
|
|
|
|
this.acceptType = type
|
|
|
|
this.acceptType = type
|
|
|
|
@ -595,24 +595,30 @@
|
|
|
|
// 获取单选数据
|
|
|
|
// 获取单选数据
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
async getVisitArea() {
|
|
|
|
getVisitArea() {
|
|
|
|
let that = this
|
|
|
|
let that = this
|
|
|
|
// util.request()
|
|
|
|
that.visitArea = [{
|
|
|
|
this.util.request({
|
|
|
|
name:'非生产区',
|
|
|
|
api: '/api/mobile/visit/visit-area',
|
|
|
|
id:3
|
|
|
|
data: {},
|
|
|
|
},{
|
|
|
|
utilSuccess: function(res) {
|
|
|
|
name:'生产区',
|
|
|
|
console.log(res)
|
|
|
|
id:4
|
|
|
|
that.visitArea = res
|
|
|
|
}]
|
|
|
|
},
|
|
|
|
// this.util.request({
|
|
|
|
utilFail: function(res) {}
|
|
|
|
// api: '/api/mobile/visit/visit-area',
|
|
|
|
})
|
|
|
|
// data: {},
|
|
|
|
|
|
|
|
// utilSuccess: function(res) {
|
|
|
|
|
|
|
|
// console.log(res)
|
|
|
|
|
|
|
|
// that.visitArea = res
|
|
|
|
|
|
|
|
// },
|
|
|
|
|
|
|
|
// utilFail: function(res) {}
|
|
|
|
|
|
|
|
// })
|
|
|
|
},
|
|
|
|
},
|
|
|
|
changeVisitArea(e){
|
|
|
|
changeVisitArea(e){
|
|
|
|
console.log(e)
|
|
|
|
console.log(e)
|
|
|
|
this.visitAreaText = e.detail.data.name
|
|
|
|
this.visitAreaText = e.detail.data.name
|
|
|
|
},
|
|
|
|
},
|
|
|
|
async getVisitTime() {
|
|
|
|
getVisitTime() {
|
|
|
|
let that = this
|
|
|
|
let that = this
|
|
|
|
// util.request()
|
|
|
|
// util.request()
|
|
|
|
this.util.request({
|
|
|
|
this.util.request({
|
|
|
|
@ -629,7 +635,7 @@
|
|
|
|
utilFail: function(res) {}
|
|
|
|
utilFail: function(res) {}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
},
|
|
|
|
},
|
|
|
|
async getReason() {
|
|
|
|
getReason() {
|
|
|
|
let that = this
|
|
|
|
let that = this
|
|
|
|
// util.request()
|
|
|
|
// util.request()
|
|
|
|
this.util.request({
|
|
|
|
this.util.request({
|
|
|
|
@ -651,7 +657,7 @@
|
|
|
|
utilFail: function(res) {}
|
|
|
|
utilFail: function(res) {}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
},
|
|
|
|
},
|
|
|
|
async getPark() {
|
|
|
|
getPark() {
|
|
|
|
let that = this
|
|
|
|
let that = this
|
|
|
|
// util.request()
|
|
|
|
// util.request()
|
|
|
|
this.util.request({
|
|
|
|
this.util.request({
|
|
|
|
|