From 1f4d15cfcbbbc32ed4253529225eeb359e720de5 Mon Sep 17 00:00:00 2001
From: lion <120344285@qq.com>
Date: Tue, 9 May 2023 13:14:01 +0800
Subject: [PATCH] =?UTF-8?q?=E8=AE=BF=E5=AE=A2?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pages/visit/addrecord.vue | 55 ++++++++++++++++++++++++++++++++++++---
1 file changed, 51 insertions(+), 4 deletions(-)
diff --git a/pages/visit/addrecord.vue b/pages/visit/addrecord.vue
index 4d741b7..8e09f6d 100644
--- a/pages/visit/addrecord.vue
+++ b/pages/visit/addrecord.vue
@@ -10,6 +10,19 @@
+
+
+
+
+ 前往区域
+
+
+
+
+
+
@@ -215,7 +228,8 @@
title: '完成'
}],
stepActive: 0,
- configshow: false,
+ configshow: false,
+ areaShow:false,
configInfo: {},
configKey: "ptfk",
toadyStart: '',
@@ -429,13 +443,16 @@
// })
// return
this.toadyStart = new Date()
- this.form.type = options.type
+ 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()
- this.getConfig()
+ this.getStudy()
+ if(options.type==2||options.type==3){
+ this.getConfig()
+ }
this.getVisitArea()
this.getVisitTime()
this.getReason()
@@ -493,6 +510,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
@@ -807,5 +839,20 @@
}
/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
}
\ No newline at end of file