From f7d50135f3be6f33cf21dc8d047f20fcab824651 Mon Sep 17 00:00:00 2001
From: lion <120344285@qq.com>
Date: Thu, 30 Mar 2023 17:24:54 +0800
Subject: [PATCH] =?UTF-8?q?=E8=BD=A6=E7=89=8C=E5=8F=B7?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pages/bd/bddetail.vue | 18 ++-
pages/visit/addrecord.vue | 235 +++++++++++++++++++++++-------------
pages/visit/detail.vue | 16 ++-
pages/visit/study.vue | 2 +-
pages/visit/successform.vue | 3 +-
pages/visit/testStudy.vue | 15 ++-
6 files changed, 190 insertions(+), 99 deletions(-)
diff --git a/pages/bd/bddetail.vue b/pages/bd/bddetail.vue
index 4e79717..674f02a 100644
--- a/pages/bd/bddetail.vue
+++ b/pages/bd/bddetail.vue
@@ -61,10 +61,15 @@
到访车辆
-
-
- 车牌:{{info.cars}}
-
+
+
+ 车牌:{{item}}
+
+
+
+
+ 无
+
@@ -291,7 +296,10 @@
font-size: 40rpx;
padding-left: 30rpx
}
-
+ .dbcars>view{
+ width:100%;
+ padding-left:0
+ }
.sfyritem {
padding-bottom: 10rpx
}
diff --git a/pages/visit/addrecord.vue b/pages/visit/addrecord.vue
index 782ef58..79c5978 100644
--- a/pages/visit/addrecord.vue
+++ b/pages/visit/addrecord.vue
@@ -1,6 +1,16 @@
-
+
+
+
+
+ {{configInfo.name}}
+
+
+ {{configInfo.value}}
+
+
+
@@ -22,19 +32,17 @@
-
+
-
+
+
+
+
+
-
-
-
-
-
-
@@ -56,9 +64,20 @@
-
-
+
+
+
+
+
+
+ 删除
+
+
@@ -78,15 +97,11 @@
-
- 修改
- 删除
-
-
-
+
+ 修改
+ 删除
{{ item.name }}
@@ -105,7 +120,8 @@
-
+
@@ -115,15 +131,17 @@
-
+
+ :dataLists="adminList" placeholder="输入被访人具体姓名或手机号搜索" @search="selectSearch" @submit="submitAccept"
+ @cancel="cancelAccept" />
-
+
@@ -153,6 +171,7 @@
style="background-color: #044ed7;margin-left:8px">确认
+
@@ -175,7 +194,11 @@
title: '完成'
}],
stepActive: 0,
+ configshow: true,
+ configInfo: {},
+ configKey: "ptfk",
toadyStart: '',
+ carindex: 0,
plateShow: false,
adminListShow: false,
adminKeyword: '',
@@ -195,15 +218,15 @@
credent: 1,
idcard: "",
company_name: "",
- cars: "",
+ cars: [''],
follw_people: [],
long_time: 0,
start_date: "",
end_date: "",
accpet_department_id: "",
accept_admin_id: "",
- accept_goods_admin_id: "",
- acceptName: "",
+ accept_goods_admin_id: "",
+ acceptName: "",
goodsName: '',
},
follw_people_obj: {
@@ -231,12 +254,12 @@
required: true,
errorMessage: '请选择前往区域'
}]
- },
- plate: {
- rules: [{
- required: true,
- errorMessage: '请选择停车区域'
- }]
+ },
+ plate: {
+ rules: [{
+ required: true,
+ errorMessage: '请选择停车区域'
+ }]
},
name: {
rules: [{
@@ -273,18 +296,18 @@
required: true,
errorMessage: '单位名称不能为空'
}]
- },
- acceptName:{
- rules: [{
- required: true,
- errorMessage: '请选择被访人'
- }]
- },
- goodsName:{
- rules: [{
- required: true,
- errorMessage: '请选择收货人'
- }]
+ },
+ acceptName: {
+ rules: [{
+ required: true,
+ errorMessage: '请选择被访人'
+ }]
+ },
+ goodsName: {
+ rules: [{
+ required: true,
+ errorMessage: '请选择收货人'
+ }]
}
},
peoplerules: {
@@ -322,8 +345,8 @@
// 单选数据源
visitTime: [],
visitArea: [],
- reasonList: [],
- parkAreaList:[],
+ reasonList: [],
+ parkAreaList: [],
credentList: [{
value: 1,
text: "身份证"
@@ -347,44 +370,51 @@
}
},
onLoad(options) {
+ // uni.navigateTo({
+ // url:'/pages/visit/testStudy?type=1'
+ // })
+ // return
this.toadyStart = new Date()
this.form.type = options.type
+ 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.getConfig()
this.getVisitArea()
this.getVisitTime()
- this.getReason()
+ this.getReason()
this.getPark()
// this.getAdminList()
},
onReady() {},
methods: {
+
adminListShowOpen(type) {
this.acceptType = type
this.adminKeyword = ""
- // this.getAdminList()
-
+ // this.getAdminList()
+
this.adminListShow = true
},
- cancelAccept() {
+ cancelAccept() {
console.log('123')
- this.adminKeyword = ""
+ this.adminKeyword = ""
this.adminList = []
this.adminListShow = false
},
selectSearch(e) {
this.adminKeyword = e
this.getAdminList()
- },
- clearAccept(type){
- if (type == 'accept') {
- this.form.accept_admin_id = ''
- this.form.acceptName = ''
- } else {
- this.form.accept_goods_admin_id = ''
- this.form.goodsName = ''
- }
+ },
+ clearAccept(type) {
+ if (type == 'accept') {
+ this.form.accept_admin_id = ''
+ this.form.acceptName = ''
+ } else {
+ this.form.accept_goods_admin_id = ''
+ this.form.goodsName = ''
+ }
},
submitAccept(e) {
if (this.acceptType == 'accept') {
@@ -397,15 +427,38 @@
this.adminListShow = false
},
setCars(e) {
- this.form.cars = e
+ this.form.cars[this.carindex] = e
this.plateShow = false
- console.log(e)
+ console.log(e, this.carindex)
},
- setPlate(e) {
- this.form.plate = e
- this.plateShow = false
+
+ closeConfig() {
+ this.configshow = false
+ },
+ async getConfig() {
+ let that = this
+ // util.request()
+ this.util.request({
+ api: '/api/admin/config/index',
+ data: {
+ page: 1,
+ page_size: 99
+ },
+ requestType: 'bd',
+ utilSuccess: function(res) {
+ console.log(res)
+ let data = res.data
+ for (let k of data) {
+ if (k.key == that.configKey) {
+ that.configInfo = k
+ }
+ }
+ },
+ utilFail: function(res) {}
+ })
},
// 获取单选数据
+
async getVisitArea() {
let that = this
// util.request()
@@ -457,20 +510,20 @@
},
utilFail: function(res) {}
})
- },
- async getPark() {
- let that = this
- // util.request()
- this.util.request({
- api: '/api/admin/parameter/show',
- data: {
- number: 'parkArea'
- },
- utilSuccess: function(res) {
- that.parkAreaList = res.detail
- },
- utilFail: function(res) {}
- })
+ },
+ async getPark() {
+ let that = this
+ // util.request()
+ this.util.request({
+ api: '/api/admin/parameter/show',
+ data: {
+ number: 'parkArea'
+ },
+ utilSuccess: function(res) {
+ that.parkAreaList = res.detail
+ },
+ utilFail: function(res) {}
+ })
},
async getAdminList() {
let that = this
@@ -590,4 +643,18 @@
/deep/ .uni-drawer__content {
padding: 40rpx
}
+ .configtitle {
+ font-size: 50rpx;
+ text-align: center;
+ padding: 20rpx 0;
+ }
+ .configvalue {
+ padding: 40rpx;
+ font-size: 36rpx;
+ height: 600rpx;
+ overflow-y: auto;
+ }
+ /deep/ .u-popup__content__close .u-icon__icon{
+ color:#fff!important
+ }
\ No newline at end of file
diff --git a/pages/visit/detail.vue b/pages/visit/detail.vue
index 686624c..fa6c811 100644
--- a/pages/visit/detail.vue
+++ b/pages/visit/detail.vue
@@ -62,10 +62,15 @@
到访车辆
-
-
- 车牌:{{info.cars}}
+
+
+ 车牌:{{item}}
+
+
+
+ 无
+
@@ -268,7 +273,10 @@
font-size: 40rpx;
padding-left: 30rpx
}
-
+ .dbcars>view{
+ width:100%;
+ padding-left:0
+ }
.sfyritem {
padding-bottom: 10rpx
}
diff --git a/pages/visit/study.vue b/pages/visit/study.vue
index eeaf2df..9eded1a 100644
--- a/pages/visit/study.vue
+++ b/pages/visit/study.vue
@@ -208,7 +208,7 @@
}
.service-show .changePicVideo{
position: absolute;
- right: 10rpx;
+ right: 80rpx;
bottom: 25rpx;
}
.service-show .changePicVideo view{
diff --git a/pages/visit/successform.vue b/pages/visit/successform.vue
index 341d7bd..4da8999 100644
--- a/pages/visit/successform.vue
+++ b/pages/visit/successform.vue
@@ -21,7 +21,8 @@
}
},
onLoad(options) {
- this.iscall=options.iscall?true:false
+ this.iscall=options.iscall?true:false
+
},
methods: {
toHistory() {
diff --git a/pages/visit/testStudy.vue b/pages/visit/testStudy.vue
index 780f545..6e70240 100644
--- a/pages/visit/testStudy.vue
+++ b/pages/visit/testStudy.vue
@@ -143,10 +143,17 @@
duration: 2000,
icon: 'none'
})
- uni.removeStorageSync('formdata')
- uni.redirectTo({
- url:'/pages/visit/successform'
- })
+ // wx.requestSubscribeMessage({
+ // tmplIds: ['IczaKkCmwf55tAAzCcxb_fbbf5L25SWrSKvaBrkIyk4'],
+ // success (res) {
+ // console.log("res",res)
+ // uni.removeStorageSync('formdata')
+ // uni.redirectTo({
+ // url:'/pages/visit/successform'
+ // })
+ // }
+ // })
+
},
utilFail: function(res) {
uni.showToast({