From f3b45139e42029e96c033028d20db6d36e66a88e Mon Sep 17 00:00:00 2001
From: liyuanchao <438964165@qq.com>
Date: Fri, 8 Aug 2025 11:31:41 +0800
Subject: [PATCH] =?UTF-8?q?1.=E6=8A=A5=E4=BA=8B=E6=8A=A5=E4=BF=AE=E6=8E=A5?=
=?UTF-8?q?=E5=8F=A3=E8=81=94=E8=B0=83?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
common/config.js | 3 +-
common/http.api.js | 5 +
pages.json | 6 +
pages/sys/user/mine.vue | 7 +-
pages/sys/user/myRepair/addRepair.vue | 249 ++++---
pages/sys/user/myRepair/myRepair.vue | 45 +-
pages/sys/user/myRepair/repairEvaluate.vue | 371 ++++-----
pages/sys/user/myVisitor/creatVisitor.vue | 76 +-
pages/sys/user/myVisitor/creatVisitor2.vue | 356 +++++++++
pages/sys/user/myVisitor/selectRoom.vue | 2 +-
pages/sys/workbench/meet/createMeet.vue | 33 +-
pages/sys/workbench/oa/oaDetail.vue | 826 +++++++++++----------
pages/sys/workbench/order/order.vue | 4 +-
pages/sys/workbench/order/orderDetail.vue | 15 +-
static/ic_right_arrow_g.png | Bin 0 -> 441 bytes
15 files changed, 1232 insertions(+), 766 deletions(-)
create mode 100644 pages/sys/user/myVisitor/creatVisitor2.vue
create mode 100644 static/ic_right_arrow_g.png
diff --git a/common/config.js b/common/config.js
index 93e2ed3..4e59770 100644
--- a/common/config.js
+++ b/common/config.js
@@ -24,6 +24,7 @@ const config = {
}
// 设置后台接口服务的基础地址
-config.baseUrl = 'http://tc.cqsznc.com:7080/api';
+// config.baseUrl = 'http://tc.cqsznc.com:7080/api';
+config.baseUrl = 'http://3deb348c.r28.cpolar.top';
export default config;
\ No newline at end of file
diff --git a/common/http.api.js b/common/http.api.js
index 22b6319..68ee134 100644
--- a/common/http.api.js
+++ b/common/http.api.js
@@ -22,6 +22,11 @@ const install = (Vue, vm) => {
//报事报修
getOrderList:(params = {})=>vm.$u.get(config.adminPath+'/property/workOrders/list',params),
+ getOrdersType:(params = {})=>vm.$u.get(config.adminPath+'/property/workOrdersType/list',params),
+ getRepairTypes:(params = {})=>vm.$u.get(config.adminPath+'/property/workOrdersType/queryList',params),
+ addOrder:(params = {})=>vm.$u.post(config.adminPath+'/property/workOrders',params),
+ addOrder2:(params = {})=>vm.$u.post(config.adminPath+'/property/mobile/workOrders',params),
+ updateOrder:(params = {})=>vm.$u.put(config.adminPath+'/property/workOrders',params),
//会议列表
getMeetings:(params = {})=>vm.$u.get(config.adminPath+'/property/roomBooking/list',params),
diff --git a/pages.json b/pages.json
index c525253..8c443ba 100644
--- a/pages.json
+++ b/pages.json
@@ -304,6 +304,12 @@
"navigationBarTitleText": "发起邀约"
}
},
+ {
+ "path": "pages/sys/user/myVisitor/creatVisitor2",
+ "style": {
+ "navigationBarTitleText": "发起邀约"
+ }
+ },
{
"path": "pages/sys/user/myVisitor/selectRoom",
"style": {
diff --git a/pages/sys/user/mine.vue b/pages/sys/user/mine.vue
index 5b2cf54..69fe0d0 100644
--- a/pages/sys/user/mine.vue
+++ b/pages/sys/user/mine.vue
@@ -107,10 +107,9 @@
url: '/pages/sys/user/myVisitor/myVisitor'
});
} else if (idx === 4) {
- // uni.navigateTo({
- // url: '/pages/sys/user/myRecord/myRecord'
- // });
- uni.navigateTo({ url: '/pages/sys/workbench/oa/oa' });
+ uni.navigateTo({
+ url: '/pages/sys/user/myRecord/myRecord'
+ });
}
}
}
diff --git a/pages/sys/user/myRepair/addRepair.vue b/pages/sys/user/myRepair/addRepair.vue
index 3ff9797..8aab56e 100644
--- a/pages/sys/user/myRepair/addRepair.vue
+++ b/pages/sys/user/myRepair/addRepair.vue
@@ -4,54 +4,41 @@
-
- 请选择房屋所在地址
-
-
详细地址
- 例1栋2单元101室1
+
+
-
- 报事报修
-
- {{ item }}
-
- 其他服务
-
- {{ item }}
-
-
-
-
+ 报事报修
+
+ {{ selectedType }}
+
+
问题详情 (非必填)
-
+
+
+
上传照片 (非必填,最多三张)
-
-
-
- +
- 上传图片
-
-
-
-
-
-
+
+
-
+
@@ -59,47 +46,103 @@
\ No newline at end of file
diff --git a/pages/sys/user/myRepair/myRepair.vue b/pages/sys/user/myRepair/myRepair.vue
index 7afd362..f514bc6 100644
--- a/pages/sys/user/myRepair/myRepair.vue
+++ b/pages/sys/user/myRepair/myRepair.vue
@@ -17,13 +17,15 @@
工单号:{{ item.orderNo }}
- {{ getStatusLabel(item.status) }}
+ {{ getStatusLabel(item.status) }}
+
建立时间:{{ item.createTime }}
报事内容:{{ item.typeName }}
报事位置:{{ item.location }}
- 服务评价
+ 服务评价
+
建立时间:{{ detailItem.createTime }}
报事内容:{{ detailItem.typeName }}
报事位置:{{ detailItem.location }}
-
@@ -71,14 +73,20 @@
detailItem: {},
detailStep: 0,
detailStatus: '',
- progressSteps: ['创建工单', '处理中', '已结束'],
+ progressSteps: ['创建工单', '已接单', '处理中', '已结束'],
lastScrollTop: 0,
isAddBtnHidden: false
}
},
onLoad() {
+ // uni.$on('refreshData', this.getOrders);
this.getOrders()
},
+ onShow() {
+ uni.$once('refreshData',s=> {
+ this.getOrders()
+ });
+ },
methods: {
goBack() {
uni.navigateBack();
@@ -89,7 +97,10 @@
});
},
async getOrders() {
- let res = await this.$u.api.getOrderList();
+ let params = {
+ "type": "1952989217332658178"
+ }
+ let res = await this.$u.api.getOrderList(params);
if (res.code == '200') {
this.records = res.rows
}
@@ -107,16 +118,20 @@
showDetail(item) {
this.detailItem = item;
// 进度映射
- if (item.status === 0) {
+ if (item.status == 0) {
this.detailStep = 0;
- this.detailStatus = '创建报';
- } else if (item.status === 4) {
+ this.detailStatus = '创建工单';
+ } else if (item.status == 4) {
this.detailStep = 3;
this.detailStatus = '已结束';
- } else {
+ } else if (item.status == 3) {
this.detailStep = 2;
this.detailStatus = '处理中';
+ } else {
+ this.detailStep = 1;
+ this.detailStatus = '已接单';
}
+
this.showDetailDialog = true;
},
closeDetail() {
@@ -125,16 +140,18 @@
getStatusLabel(status) {
const statusMap = {
0: '创建工单',
- 1: '处理中',
- 2: '处理中',
+ 1: '已接单',
+ 2: '已接单',
3: '处理中',
- 4: '已完成'
+ 4: '已结束'
};
return statusMap[status] || '';
},
goTEvaluate() {
+ // 将detailItem转换为JSON字符串并进行编码,以确保安全传输
+ const detailItemStr = encodeURIComponent(JSON.stringify(this.detailItem));
uni.navigateTo({
- url: '/pages/sys/user/myRepair/repairEvaluate'
+ url: `/pages/sys/user/myRepair/repairEvaluate?detailItem=${detailItemStr}`
});
},
handleScroll(e) {
@@ -386,7 +403,7 @@
align-items: center;
justify-content: space-between;
margin-bottom: 5rpx;
- margin-left: 100rpx;
+ margin-left: 75rpx;
width: 100%;
}
diff --git a/pages/sys/user/myRepair/repairEvaluate.vue b/pages/sys/user/myRepair/repairEvaluate.vue
index e06763d..0824e2c 100644
--- a/pages/sys/user/myRepair/repairEvaluate.vue
+++ b/pages/sys/user/myRepair/repairEvaluate.vue
@@ -1,172 +1,201 @@
-
-
-
-
-
-
- 服务评价
-
-
-
-
- - 具体说说看 -
-
- 专业性
-
-
-
-
-
- 服务态度
-
-
-
-
-
- 时效性
-
-
-
-
-
-
- - 选择或自定义任一标签 -
-
- {{ tag }}
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/pages/sys/user/myVisitor/creatVisitor.vue b/pages/sys/user/myVisitor/creatVisitor.vue
index 410247c..038396f 100644
--- a/pages/sys/user/myVisitor/creatVisitor.vue
+++ b/pages/sys/user/myVisitor/creatVisitor.vue
@@ -25,7 +25,7 @@
{{ form.room || '请选择访问楼栋及房间号' }}
- >
+
@@ -55,7 +55,7 @@
{{ form.licensePlate || '请选择车牌号' }}
- >
+
@@ -73,8 +73,8 @@
} from '@/common/upload.js';
export default {
data() {
- return {
- header:'',
+ return {
+ header: '',
form: {
visitorName: '',
visitorPhone: '',
@@ -89,11 +89,11 @@
purposes: ['商务合作', '园区参观', '面试签到', '装修放行', '家政服务', '送货上门'],
times: ['今天(2025-07-04)', '明天(2025-07-04)']
}
- },
- onShow() {
- uni.$once('selectPlate', plate => {
- this.form.licensePlate = plate;
- });
+ },
+ onShow() {
+ uni.$once('selectPlate', plate => {
+ this.form.licensePlate = plate;
+ });
},
methods: {
// 新增:处理图片上传
@@ -105,41 +105,41 @@
count: 1 // 根据剩余数量选择
});
// 将选择的图片添加到selectedImages数组
- this.header = images[0].path
-
+ this.header = images[0].path
+
} catch (error) {
}
- },
- async submit(){
- let images = [''];
- let filePath = this.header.replace('file://', '');
- images[0] = filePath;
- console.log("t1",images)
- const result = await uploadFiles({
- files: images,
- url: this.vuex_config.baseUrl + '/resource/oss/upload',
- name: 'file',
- vm: this // 关键:用于注入 token 等
- });
-
- if (result.code == '200') {
- data = result.data.url
- console.log("t1",result.data.url)
- }
-
- this.form.facePictures = result.url
+ },
+ async submit() {
+ let images = [''];
+ let filePath = this.header.replace('file://', '');
+ images[0] = filePath;
+ console.log("t1", images)
+ const result = await uploadFiles({
+ files: images,
+ url: this.vuex_config.baseUrl + '/resource/oss/upload',
+ name: 'file',
+ vm: this // 关键:用于注入 token 等
+ });
+
+ if (result.code == '200') {
+ data = result.data.url
+ console.log("t1", result.data.url)
+ }
+
+ this.form.facePictures = result.url
},
chooseRoom() {
- // 这里可弹出选择房间号
- uni.navigateTo({
- url: '/pages/sys/user/myVisitor/selectRoom'
+ // 这里可弹出选择房间号
+ uni.navigateTo({
+ url: '/pages/sys/user/myVisitor/selectRoom'
});
},
chooseCarNumber() {
- // 这里可弹出选择车牌号
- uni.navigateTo({
- url: '/pages/sys/user/myPayment/myCarCode'
+ // 这里可弹出选择车牌号
+ uni.navigateTo({
+ url: '/pages/sys/user/myPayment/myCarCode'
});
}
}
@@ -305,8 +305,8 @@
}
.cv-arrow {
- font-size: 32rpx;
- color: #bbb;
+ width: 11rpx;
+ height: 21rpx;
}
.cv-time-list {
diff --git a/pages/sys/user/myVisitor/creatVisitor2.vue b/pages/sys/user/myVisitor/creatVisitor2.vue
new file mode 100644
index 0000000..a16d646
--- /dev/null
+++ b/pages/sys/user/myVisitor/creatVisitor2.vue
@@ -0,0 +1,356 @@
+
+
+
+
+
+
+ 访客信息
+
+
+
+
+
+
+ 邀约详情
+
+
+
+
+ {{ form.startTime || '请选择开始时间' }}
+
+ 至
+
+ {{ form.endTime || '请选择结束时间' }}
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/sys/user/myVisitor/selectRoom.vue b/pages/sys/user/myVisitor/selectRoom.vue
index fdd846f..288fb51 100644
--- a/pages/sys/user/myVisitor/selectRoom.vue
+++ b/pages/sys/user/myVisitor/selectRoom.vue
@@ -49,7 +49,7 @@ export default {
id: 1,
latitude: 29.534,
longitude: 106.565,
- iconPath: '/static/ic_map.png', // 设置背景图
+ // iconPath: '/static/ic_map.png', // 设置背景图
width: 20,
height: 20
}
diff --git a/pages/sys/workbench/meet/createMeet.vue b/pages/sys/workbench/meet/createMeet.vue
index cac10dd..9fa920f 100644
--- a/pages/sys/workbench/meet/createMeet.vue
+++ b/pages/sys/workbench/meet/createMeet.vue
@@ -50,8 +50,12 @@
- 会议时间
-
+ 会议时间
+
+ {{ meetingTime || '请选择会议时间' }}
+
+
+
@@ -67,8 +71,11 @@
- 增值服务
- 会议物品
+ 增值服务
+
+ 会议物品
+
+
@@ -335,6 +342,24 @@
padding-left: 18rpx;
margin-top: 30rpx;
margin-bottom: 30rpx;
+ }
+
+ .meet-select {
+ width: 86vw;
+ height: 73rpx;
+ background: #F7F7F7;
+ font-size: 24rpx;
+ color: #808080;
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ padding: 0 24rpx;
+ margin-top: 30rpx;
+ margin-bottom: 30rpx;
+ }
+ .meet-arrow {
+ width: 11rpx;
+ height: 21rpx;
}
.meet-text {
diff --git a/pages/sys/workbench/oa/oaDetail.vue b/pages/sys/workbench/oa/oaDetail.vue
index 7872c95..a5a9cdd 100644
--- a/pages/sys/workbench/oa/oaDetail.vue
+++ b/pages/sys/workbench/oa/oaDetail.vue
@@ -1,407 +1,419 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 余
-
- 余永乐
- 数据开发及研发部
-
-
- 提交时间:7月16日 18:36:44
-
-
-
-
- 申批详情
-
- 假期类型
- 病假
-
-
- 开始时间
- 2025-07-15
-
-
- 结束时间
- 2025-07-17
-
-
- 时长
- 2天
-
-
- 请假事由
- 由于腿儿过大,需要到医院进行检查
-
-
- 附件
-
-
-
-
-
- 174568963.jpg
- 289.14 KB
-
-
-
-
-
-
-
- 申批记录
-
-
-
-
-
-
- {{ item.type }}
-
-
- {{ item.approver.avatarText }}
-
- {{ item.approver.name }}
- {{ item.result }}
-
- {{ item.time }}
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 余
+
+ 余永乐
+ 数据开发及研发部
+
+
+ 提交时间:7月16日 18:36:44
+
+
+
+
+ 申批详情
+
+ 假期类型
+ 病假
+
+
+ 开始时间
+ 2025-07-15
+
+
+ 结束时间
+ 2025-07-17
+
+
+ 时长
+ 2天
+
+
+ 请假事由
+ 由于腿儿过大,需要到医院进行检查
+
+
+ 附件
+
+
+
+
+
+ 174568963.jpg
+ 289.14 KB
+
+
+
+
+
+
+
+ 申批记录
+
+
+
+
+
+
+ {{ item.type }}
+
+
+ {{ item.approver.avatarText }}
+
+ {{ item.approver.name }}
+ {{ item.result }}
+
+ {{ item.time }}
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/sys/workbench/order/order.vue b/pages/sys/workbench/order/order.vue
index 54910c4..2aa0a45 100644
--- a/pages/sys/workbench/order/order.vue
+++ b/pages/sys/workbench/order/order.vue
@@ -85,8 +85,8 @@
getStatusLabel(status) {
const statusMap = {
0: '创建工单',
- 1: '处理中',
- 2: '处理中',
+ 1: '已接单',
+ 2: '已接单',
3: '处理中',
4: '已完成'
};
diff --git a/pages/sys/workbench/order/orderDetail.vue b/pages/sys/workbench/order/orderDetail.vue
index ad26be2..b5bfa19 100644
--- a/pages/sys/workbench/order/orderDetail.vue
+++ b/pages/sys/workbench/order/orderDetail.vue
@@ -48,7 +48,7 @@
return {
detailStep: 0,
detailStatus: '',
- progressSteps: ['创建工单', '处理中', '已结束'],
+ progressSteps: ['创建工单','已接单', '处理中', '已结束'],
currentStatus: 2, // 0: 待分配,1: 已接单,2: 处理中,3: 已完成
detail: {
}
@@ -61,15 +61,18 @@
console.log("t1",this.detail)
// 现在可以使用item对象了
// 进度映射
- if (item.status === 0) {
+ if (item.status == 0) {
this.detailStep = 0;
- this.detailStatus = '创建报';
- } else if (item.status === 4) {
+ this.detailStatus = '创建工单';
+ } else if (item.status == 4) {
this.detailStep = 3;
this.detailStatus = '已结束';
- } else {
+ } else if(item.status == 3){
this.detailStep = 2;
this.detailStatus = '处理中';
+ }else {
+ this.detailStep = 1;
+ this.detailStatus = '已接单';
}
}
},
@@ -129,7 +132,7 @@
align-items: center;
justify-content: space-between;
margin-bottom: 5rpx;
- margin-left: 100rpx;
+ margin-left: 85rpx;
width: 100%;
}
diff --git a/static/ic_right_arrow_g.png b/static/ic_right_arrow_g.png
new file mode 100644
index 0000000000000000000000000000000000000000..c31e5e0e616c8a83173d0915f66017af7d3238bf
GIT binary patch
literal 441
zcmV;q0Y?6bP)Px$b4f%&R7gwB*Ih0JF%$scbM6K##1aTWgl$M@yBZ#+r$gf5?tutG@W_(p$V^J+
zr=2_f6Z3w*+nk=iA`yKu^OaI+4H-WqBDS8AQc^Cv4+AqxrIg8m58xI=L?MKzQ*o@S
zYG<`ty^o*^Ddlwvj_r?KI5VFsrEX&J4sJgp+692OK9mxcU$_Oe)_aKf+Q(xrbO7hX
zCvb}!WA>T(CFSH!*v9+-0G?yB#S8oJrP(qIw|HIGhfUKwg`RvPY%lZ(5g$WRaS?3s
zV?=xyo!r~F7Q;T=m*+vSO~n&tzTXsUx9Fqk^Qp)khePdBagr23Kz#DxMtT1jiI^EaU)ZIg&5
zQzW_3yU=k;%~kE+4bxn^MfruL$cj~DDJ-_e_MQq|_M~i>gE`oTV>e4zJ{Nu5d@=K7
j_UBm2Fbyv09Dnu=2Ko*