diff --git a/api/list.js b/api/list.js
index 62e818a..f83bc41 100644
--- a/api/list.js
+++ b/api/list.js
@@ -3,12 +3,21 @@
import useNetWork from '@/common/useNetWork.js';
const List = BASE_URL + '/visitor/apply/list'
-
+const MessageInfo = BASE_URL + '/visitor/getMessageInfo'
/**
- * 提交访客记录
+ * 获取访客提交记录列表
* @param {*}
*/
export function getList(data) {
useNetWork();
return fetch.post(List,data).then(res => res);
+}
+
+/**
+ * 获取消息详情
+ * @param {*}
+ */
+export function getMessageInfo(params) {
+ useNetWork();
+ return fetch.get(MessageInfo,params).then(res => res);
}
\ No newline at end of file
diff --git a/api/list.js b/api/list.js
index 62e818a..f83bc41 100644
--- a/api/list.js
+++ b/api/list.js
@@ -3,12 +3,21 @@
import useNetWork from '@/common/useNetWork.js';
const List = BASE_URL + '/visitor/apply/list'
-
+const MessageInfo = BASE_URL + '/visitor/getMessageInfo'
/**
- * 提交访客记录
+ * 获取访客提交记录列表
* @param {*}
*/
export function getList(data) {
useNetWork();
return fetch.post(List,data).then(res => res);
+}
+
+/**
+ * 获取消息详情
+ * @param {*}
+ */
+export function getMessageInfo(params) {
+ useNetWork();
+ return fetch.get(MessageInfo,params).then(res => res);
}
\ No newline at end of file
diff --git a/pages.json b/pages.json
index b4cf49b..ab349c6 100644
--- a/pages.json
+++ b/pages.json
@@ -51,7 +51,7 @@
"style" :
{
"navigationBarTitleText": "列表",
- "enablePullDownRefresh": false
+ "enablePullDownRefresh": true
}
},
{
diff --git a/api/list.js b/api/list.js
index 62e818a..f83bc41 100644
--- a/api/list.js
+++ b/api/list.js
@@ -3,12 +3,21 @@
import useNetWork from '@/common/useNetWork.js';
const List = BASE_URL + '/visitor/apply/list'
-
+const MessageInfo = BASE_URL + '/visitor/getMessageInfo'
/**
- * 提交访客记录
+ * 获取访客提交记录列表
* @param {*}
*/
export function getList(data) {
useNetWork();
return fetch.post(List,data).then(res => res);
+}
+
+/**
+ * 获取消息详情
+ * @param {*}
+ */
+export function getMessageInfo(params) {
+ useNetWork();
+ return fetch.get(MessageInfo,params).then(res => res);
}
\ No newline at end of file
diff --git a/pages.json b/pages.json
index b4cf49b..ab349c6 100644
--- a/pages.json
+++ b/pages.json
@@ -51,7 +51,7 @@
"style" :
{
"navigationBarTitleText": "列表",
- "enablePullDownRefresh": false
+ "enablePullDownRefresh": true
}
},
{
diff --git a/pages/info/info.vue b/pages/info/info.vue
index e9e9c6a..c5c9234 100644
--- a/pages/info/info.vue
+++ b/pages/info/info.vue
@@ -1,59 +1,99 @@
-
- {{item.name}}
- {{item.value}}
+
+ 申请单号
+ {{info.applyNo}}
+
+
+ 申请状态
+ {{status}}
+
+
+ 申请者工号
+ {{info.staffCode}}
+
+
+ 申请者姓名
+ {{info.staffName}}
+
+
+ 申请者手机号
+ {{info.staffPhone}}
+
+
+ 访客姓名
+ {{info.visitorName}}
+
+
+ 访客身份证
+ {{info.visitorIdCard}}
+
+
+ 访客联系方式
+ {{info.visitorPhone}}
+
+
+ 访客目的
+ {{info.visitReason}}
+
+
+ 访客区域
+ {{info.visitPosition}}
+
+
+ 访客时间
+ {{info.inTime }}
+
+
+ 备注
+ {{info.remarks}}
@@ -62,16 +102,26 @@
.check-message-detail {
padding: 18rpx;
height: 100%;
- .detail-content{
+
+ .detail-content {
padding: 22rpx;
background-color: #fff;
border-radius: 10rpx;
}
- .detail-item{
+
+ .detail-item {
display: flex;
justify-content: space-between;
margin-top: 44rpx;
}
}
-
+ .green{
+ color: #04ef0e;
+ }
+ .blue{
+ color: #04a4ef;
+ }
+ .red{
+ color: #ff0019;
+ }
diff --git a/api/list.js b/api/list.js
index 62e818a..f83bc41 100644
--- a/api/list.js
+++ b/api/list.js
@@ -3,12 +3,21 @@
import useNetWork from '@/common/useNetWork.js';
const List = BASE_URL + '/visitor/apply/list'
-
+const MessageInfo = BASE_URL + '/visitor/getMessageInfo'
/**
- * 提交访客记录
+ * 获取访客提交记录列表
* @param {*}
*/
export function getList(data) {
useNetWork();
return fetch.post(List,data).then(res => res);
+}
+
+/**
+ * 获取消息详情
+ * @param {*}
+ */
+export function getMessageInfo(params) {
+ useNetWork();
+ return fetch.get(MessageInfo,params).then(res => res);
}
\ No newline at end of file
diff --git a/pages.json b/pages.json
index b4cf49b..ab349c6 100644
--- a/pages.json
+++ b/pages.json
@@ -51,7 +51,7 @@
"style" :
{
"navigationBarTitleText": "列表",
- "enablePullDownRefresh": false
+ "enablePullDownRefresh": true
}
},
{
diff --git a/pages/info/info.vue b/pages/info/info.vue
index e9e9c6a..c5c9234 100644
--- a/pages/info/info.vue
+++ b/pages/info/info.vue
@@ -1,59 +1,99 @@
-
- {{item.name}}
- {{item.value}}
+
+ 申请单号
+ {{info.applyNo}}
+
+
+ 申请状态
+ {{status}}
+
+
+ 申请者工号
+ {{info.staffCode}}
+
+
+ 申请者姓名
+ {{info.staffName}}
+
+
+ 申请者手机号
+ {{info.staffPhone}}
+
+
+ 访客姓名
+ {{info.visitorName}}
+
+
+ 访客身份证
+ {{info.visitorIdCard}}
+
+
+ 访客联系方式
+ {{info.visitorPhone}}
+
+
+ 访客目的
+ {{info.visitReason}}
+
+
+ 访客区域
+ {{info.visitPosition}}
+
+
+ 访客时间
+ {{info.inTime }}
+
+
+ 备注
+ {{info.remarks}}
@@ -62,16 +102,26 @@
.check-message-detail {
padding: 18rpx;
height: 100%;
- .detail-content{
+
+ .detail-content {
padding: 22rpx;
background-color: #fff;
border-radius: 10rpx;
}
- .detail-item{
+
+ .detail-item {
display: flex;
justify-content: space-between;
margin-top: 44rpx;
}
}
-
+ .green{
+ color: #04ef0e;
+ }
+ .blue{
+ color: #04a4ef;
+ }
+ .red{
+ color: #ff0019;
+ }
diff --git a/pages/information/information.vue b/pages/information/information.vue
index b01bece..7c2fb84 100644
--- a/pages/information/information.vue
+++ b/pages/information/information.vue
@@ -122,6 +122,7 @@
change(e) {},
//点击提交访客记录
async submit() {
+ console.log(JSON.stringify(this.callerInfo))
if (this.callerInfo.visitorName.trim() == '' || this.callerInfo.visitorIdCard.trim() == '' || this.callerInfo
.visitorPhone.trim() == '' || this.callerInfo.visitReason.trim() == '' || this.callerInfo.visitPosition.trim() == '' || this.callerInfo.staffCode.trim() == ''){
return uni.showToast({
diff --git a/api/list.js b/api/list.js
index 62e818a..f83bc41 100644
--- a/api/list.js
+++ b/api/list.js
@@ -3,12 +3,21 @@
import useNetWork from '@/common/useNetWork.js';
const List = BASE_URL + '/visitor/apply/list'
-
+const MessageInfo = BASE_URL + '/visitor/getMessageInfo'
/**
- * 提交访客记录
+ * 获取访客提交记录列表
* @param {*}
*/
export function getList(data) {
useNetWork();
return fetch.post(List,data).then(res => res);
+}
+
+/**
+ * 获取消息详情
+ * @param {*}
+ */
+export function getMessageInfo(params) {
+ useNetWork();
+ return fetch.get(MessageInfo,params).then(res => res);
}
\ No newline at end of file
diff --git a/pages.json b/pages.json
index b4cf49b..ab349c6 100644
--- a/pages.json
+++ b/pages.json
@@ -51,7 +51,7 @@
"style" :
{
"navigationBarTitleText": "列表",
- "enablePullDownRefresh": false
+ "enablePullDownRefresh": true
}
},
{
diff --git a/pages/info/info.vue b/pages/info/info.vue
index e9e9c6a..c5c9234 100644
--- a/pages/info/info.vue
+++ b/pages/info/info.vue
@@ -1,59 +1,99 @@
-
- {{item.name}}
- {{item.value}}
+
+ 申请单号
+ {{info.applyNo}}
+
+
+ 申请状态
+ {{status}}
+
+
+ 申请者工号
+ {{info.staffCode}}
+
+
+ 申请者姓名
+ {{info.staffName}}
+
+
+ 申请者手机号
+ {{info.staffPhone}}
+
+
+ 访客姓名
+ {{info.visitorName}}
+
+
+ 访客身份证
+ {{info.visitorIdCard}}
+
+
+ 访客联系方式
+ {{info.visitorPhone}}
+
+
+ 访客目的
+ {{info.visitReason}}
+
+
+ 访客区域
+ {{info.visitPosition}}
+
+
+ 访客时间
+ {{info.inTime }}
+
+
+ 备注
+ {{info.remarks}}
@@ -62,16 +102,26 @@
.check-message-detail {
padding: 18rpx;
height: 100%;
- .detail-content{
+
+ .detail-content {
padding: 22rpx;
background-color: #fff;
border-radius: 10rpx;
}
- .detail-item{
+
+ .detail-item {
display: flex;
justify-content: space-between;
margin-top: 44rpx;
}
}
-
+ .green{
+ color: #04ef0e;
+ }
+ .blue{
+ color: #04a4ef;
+ }
+ .red{
+ color: #ff0019;
+ }
diff --git a/pages/information/information.vue b/pages/information/information.vue
index b01bece..7c2fb84 100644
--- a/pages/information/information.vue
+++ b/pages/information/information.vue
@@ -122,6 +122,7 @@
change(e) {},
//点击提交访客记录
async submit() {
+ console.log(JSON.stringify(this.callerInfo))
if (this.callerInfo.visitorName.trim() == '' || this.callerInfo.visitorIdCard.trim() == '' || this.callerInfo
.visitorPhone.trim() == '' || this.callerInfo.visitReason.trim() == '' || this.callerInfo.visitPosition.trim() == '' || this.callerInfo.staffCode.trim() == ''){
return uni.showToast({
diff --git a/pages/list/list.vue b/pages/list/list.vue
index c4fb2bb..a6f9635 100644
--- a/pages/list/list.vue
+++ b/pages/list/list.vue
@@ -10,15 +10,16 @@
prefixIconStyle="font-size: 22px;color: #909399"
>
- 筛选时间
+ {{time}}
- 筛选状态
+ {{statusInfo}}
-
+
{{item.inTime}}
{{item.remarks}}
{{item.visitorName}}
+ {{item.status }}
-
-
-
+
@@ -63,7 +63,7 @@