lion 3 years ago
parent 415ba23943
commit d384feb458

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

@ -209,6 +209,16 @@
</div> </div>
</div> </div>
</template> </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> <template v-slot:cars>
<div class="xy-table-item"> <div class="xy-table-item">
<div class="xy-table-item-label"> <div class="xy-table-item-label">
@ -372,6 +382,7 @@
credent: 1, credent: 1,
idcard: "", idcard: "",
company_name: "", company_name: "",
cda:'',
cars: "", cars: "",
follw_people: [], follw_people: [],
long_time: 0, long_time: 0,

Loading…
Cancel
Save