master
lion 3 years ago
parent 68d0c1364b
commit 1f4d15cfcb

@ -11,6 +11,19 @@
</view>
</u-popup>
<!-- 普通访客 先选择区域 -->
<u-popup :show="areaShow" class="configwrap" mode="bottom">
<view class="configtitle">
前往区域
</view>
<view class="configvalue areavalue">
<uni-data-checkbox mode="button" @change='changeVisitArea' v-model="form.visit_area_id" :localdata="visitArea"
:map="{text:'name',value:'id'}" />
</view>
<button class="areabtn" @click="closeArea" size="large" type="primary"
>确认</button>
</u-popup>
<view class="steps">
<uni-steps :options="steps" :active="stepActive" active-color="#044ed7" />
</view>
@ -216,6 +229,7 @@
}],
stepActive: 0,
configshow: false,
areaShow:false,
configInfo: {},
configKey: "ptfk",
toadyStart: '',
@ -430,12 +444,15 @@
// return
this.toadyStart = new Date()
this.form.type = options.type
this.areaShow = options.type == 1?true:false
this.configKey = options.type == 1 ? 'ptfk' : (options.type == 2 ? 'sgfk' : 'wlcl')
this.isCall = options.iscall ? options.iscall : ''
this.goStudy = this.isCall == 'call' ? '提交' : '去学习'
this.form.audit_status = this.isCall == 'call' ? 1 : 0
this.getStudy()
if(options.type==2||options.type==3){
this.getConfig()
}
this.getVisitArea()
this.getVisitTime()
this.getReason()
@ -494,6 +511,21 @@
closeConfig() {
this.configshow = false
},
closeArea(){
if(!this.form.visit_area_id){
this.util.alert("请先选择前往区域")
return
}
if(this.visitAreaText=="生产区"){
this.configKey = 'cjfk'
this.getConfig()
this.areaShow = false
}else{
this.configKey = 'ptfk'
this.getConfig()
this.areaShow = false
}
},
async getConfig() {
let that = this
// util.request()
@ -808,4 +840,19 @@
/deep/ .u-popup__content__close .u-icon__icon{
color:#fff!important
}
.areavalue{
}
.areabtn{
background-color: #044ed7;
/* margin-left: 8px; */
width: 100%;
position: fixed;
bottom: 0;
left: 0;
border-radius: 0;
}
/deep/ .areavalue .uni-data-checklist .checklist-group .checklist-box.is--button {
padding:30rpx
}
</style>
Loading…
Cancel
Save