lion 3 years ago
parent 415ba23943
commit d384feb458

@ -36,7 +36,7 @@
<span style="color: red;font-weight: 600;padding-right: 4px;">*</span>前往区域
</div>
<div class="xy-table-item-content">
<el-radio-group v-model="form.visit_area_id" style="width:300px">
<el-radio-group v-model="form.visit_area_id" style="width:300px" @change="changeVisitArea">
<el-radio v-for="item in visitAreaList" :label="item.id">{{item.name}}</el-radio>
</el-radio-group>
</div>
@ -151,6 +151,16 @@
</div>
</div>
</template>
<template v-slot:cda v-if="visitType==1&&visitAreaText=='生产区'">
<div class="xy-table-item">
<div class="xy-table-item-label">
<span style="color: red;font-weight: 600;padding-right: 4px;">*</span>CDA编号
</div>
<div class="xy-table-item-content">
<el-input v-model="form.cda" placeholder="请输入CDA编号(如无注明原因)"></el-input>
</div>
</div>
</template>
<!-- <template v-slot:cars v-if="visitType==3">
<div class="xy-table-item">
@ -332,6 +342,7 @@
id: '',
visitType: "",
typeName: '',
visitAreaText:"",
form: {
// type: 1,
visitinfo: "",
@ -348,6 +359,7 @@
credent: 1,
idcard: "",
company_name: "",
cda:'',
cars: [],
carsno:[],
follw_people: [],
@ -496,6 +508,10 @@
required: true,
message: '请输入单位名称'
}],
cda:[{
required: true,
message: '请输入CDA编号'
}],
cars: [{
required: true,
message: '请输入车牌号'
@ -563,6 +579,7 @@
credent: res?.credent,
idcard: res?.idcard,
company_name: res?.company_name,
cda:res?.cda,
cars:[],
carsno: [],
follw_people: res?.follw_people,
@ -577,6 +594,7 @@
for(var k of res?.cars){
this.carsList.push({car:k})
}
this.visitAreaText = res?.visit_area.name
console.log(this.followList,this.carsList)
},
async getLabel() {
@ -597,6 +615,15 @@
this.parkAreaList = park?.detail;
},
changeVisitArea(val){
console.log(val)
this.visitAreaList.map(item=>{
if(item.id==val){
this.visitAreaText = item.name
}
})
console.log(this.visitAreaText)
},
changelongrange(val){
this.form.start_date = val[0]
this.form.end_date = val[1]
@ -685,6 +712,7 @@
this.visitType = 1
this.followList = []
this.carsList = []
this.visitAreaText=''
this.$refs['dialog'].reset()
}
},

@ -209,6 +209,16 @@
</div>
</div>
</template>
<template v-slot:cda v-if="form.type==1&&form.visit_area.name=='生产区'">
<div class="xy-table-item">
<div class="xy-table-item-label">
CDA编号
</div>
<div class="xy-table-item-content">
{{form.cda}}
</div>
</div>
</template>
<template v-slot:cars>
<div class="xy-table-item">
<div class="xy-table-item-label">
@ -372,6 +382,7 @@
credent: 1,
idcard: "",
company_name: "",
cda:'',
cars: "",
follw_people: [],
long_time: 0,

Loading…
Cancel
Save