diff --git a/components/tabBar/tabBar.vue b/components/tabBar/tabBar.vue
index 4ba42e3..bef6048 100644
--- a/components/tabBar/tabBar.vue
+++ b/components/tabBar/tabBar.vue
@@ -123,7 +123,7 @@
if(index == 1){
this.aindex = index
uni.reLaunch({
- url:'/pages/index/synthesis'
+ url:'/pages/index/newindex'
});
// uni.navigateTo({
// url:'/pages/index/index'
@@ -132,7 +132,7 @@
if(index == 2){
this.aindex = index
uni.reLaunch({
- url:'/pages/xiaoxi/xiaoxi'
+ url:'/pages/xiaoxi/notice'
})
}
diff --git a/pages.json b/pages.json
index fb64984..099e077 100644
--- a/pages.json
+++ b/pages.json
@@ -148,6 +148,13 @@
"navigationStyle": "custom"
}
},
+ {
+ "path": "pages/xiaoxi/notice",
+ "style": {
+ "navigationBarTitleText": "消息",
+ "navigationStyle": "custom"
+ }
+ },
{
"path": "pages/xiaoxi/details",
"style": {
@@ -476,5 +483,33 @@
"navigationBarBackgroundColor": "#F8F8F8",
"backgroundColor": "#F8F8F8"
},
+// "tabBar": {
+// "custom": true,
+// "color": "#929292",
+// "selectedColor": "#327DFB",
+// "borderStyle": "black",
+// "backgroundColor": "#F7F7F7",
+// "list": [
+// {
+// "pagePath": "pages/index/newindex",
+// "text": "首页",
+// "iconPath": "/static/tabBar/home.png",
+// "selectedIconPath": "/static/tabBar/homex.png"
+// },
+// {
+// "pagePath": "pages/notice/notice",
+// "text": "通知",
+// "iconPath": "/static/tabBar/notice.png",
+// "selectedIconPath": "/static/tabBar/noticex.png"
+// },
+// {
+// "pagePath": "pages/my/my",
+// "text": "我的",
+// "iconPath": "/static/tabBar/my.png",
+// "selectedIconPath": "/static/tabBar/myx.png"
+// }
+//
+// ]
+// },
"uniIdRouter": {}
}
diff --git a/pages/Login/launcherPage.vue b/pages/Login/launcherPage.vue
index 57207e6..65a221c 100644
--- a/pages/Login/launcherPage.vue
+++ b/pages/Login/launcherPage.vue
@@ -43,7 +43,7 @@
}
else if(chooseIdx == 0){
uni.navigateTo({
- url:'/pages/index/synthesis'
+ url:'/pages/index/newindex'
})
}else if(chooseIdx == 2){
uni.navigateTo({
diff --git a/pages/coupon/coupon.vue b/pages/coupon/coupon.vue
index 2fbd078..941625c 100644
--- a/pages/coupon/coupon.vue
+++ b/pages/coupon/coupon.vue
@@ -214,8 +214,8 @@
display: flex;
align-items: center;
justify-content: center;
- background: #0D2E8D;
- color: white;
+ background: #327DFB;
+ color: white;
position: fixed;
bottom: 10px;
transform: translate(-50%);
diff --git a/pages/index/addStaff.vue b/pages/index/addStaff.vue
index 9d4f01b..822928c 100644
--- a/pages/index/addStaff.vue
+++ b/pages/index/addStaff.vue
@@ -67,30 +67,30 @@
{{ roleName != null ? this.roleName : '请选择岗位' }} >
-
+
附件
- 上传附件
+ 查看附件
-
-
-
-
-
- 附件格式 jpg/png
- 100KB
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -230,10 +230,9 @@ export default {
},
submit() {
//判断是否是修改
- console.log(this.staff.fileList)
if (this.userId) {
this.update()
- }else {
+ } else {
this.add()
}
},
@@ -245,13 +244,17 @@ export default {
}
this.staff.userId = this.userId
- console.log(this.staff)
const data = {
...this.staff,
- fileList: this.fileList1,
+ fileList: this.fileList1
+ .map(item => {
+ item.url = item.url.replace(/^https?:\/\/[^/]+\/minio\//, '');
+ return item;
+ }), // 去除域名和 minio/
driverLicenseType: this.driverLicenseTypeArrStr,
driverLicenseTypeArr: this.driverLicenseTypeArr.map(item => item.id)
}
+
request({
url: '/inspectionStaff/update',
method: 'put',
@@ -406,6 +409,34 @@ export default {
this.showRole = false
},
+ goFile() {
+ if (!this.userId) {
+ uni.showToast({
+ title: '请先新建员工',
+ icon: 'none'
+ })
+ return
+ }
+ if (!this.staff.folderId) {
+ console.log('当前员工没有文件加')
+ //给当前员工创建一个文件夹
+ request({
+ url: '/inspectionStaff/addFolder',
+ method: 'post',
+ data: this.userId
+ }).then(res => {
+ this.staff.folderId = res.data
+ uni.navigateTo({
+ url: '/pages/manage/deviceManage?type=staff&folderId=' + this.staff.folderId
+ })
+ })
+ }else {
+ uni.navigateTo({
+ url: '/pages/manage/deviceManage?type=staff&folderId=' + this.staff.folderId
+ })
+ }
+
+ },
// 上传相关方法
handleUpload() {
// 通过 ref 获取 u-upload 组件实例,并调用其上传方法
diff --git a/pages/index/homecar.vue b/pages/index/homecar.vue
index 498c304..0b05e9d 100644
--- a/pages/index/homecar.vue
+++ b/pages/index/homecar.vue
@@ -9,7 +9,7 @@
搜索
-
+
{{item.text}}
diff --git a/pages/index/newindex.vue b/pages/index/newindex.vue
index 379ce3c..bff09fa 100644
--- a/pages/index/newindex.vue
+++ b/pages/index/newindex.vue
@@ -1,575 +1,715 @@
-
+
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+ v-if="userInfo && userInfo.avatar === null" :src="defaultAvatar" mode="scaleToFill"
+ @error="avatarErr">
-
-
-
+
+
+
{{ userInfo.nickname }}
-
- {{ userInfo.roleNames }}
-
-
-
-
-
-
-
-
-
-
+
+ {{ userInfo.roleNames }}
+
+
+
+
+
+
+
+
+
+
-
-
-
-
- 当日订单
- {{ threenum.todayOrderNum }}
-
-
- 合规合格
- {{ threenum.hgNum }}
-
-
- 双燃料合格
- {{ threenum.srlNum }}
-
+
+
+
+
+ 当日订单
+ {{ threenum.todayOrderNum }}
+
+
+ 已完成
+ {{ threenum.workedNum }}
+
+
+ 未完成
+ {{ threenum.uncompletedNum }}
+
-
-
-
- 2024-12-30 星期一 11:05
-
-
-
- 订单管理
-
-
-
- 业务统计
-
-
-
- 通知公告
-
-
-
- 内部管理
-
-
-
- 更多功能
-
-
-
-
-
- 发布商品
-
-
-
- 商品管理
-
-
-
- 订单核销
-
-
-
- 优惠券
-
-
-
- 使用说明
-
-
-
-
-
- 预约记录
-
-
- 小型汽车(含5座)
-
-
-
-
-
- 车牌号:鲁A00000
-
-
-
-
- 预约人
- 王五
-
-
- 电话
- 128 1234 5678
-
-
- 预约时间
- 2025年01月01日
-
-
- 客户来源
- 代办
-
-
-
-
+
+
+
+ {{ dateStr || '' }} {{ week || '' }} {{ time || '' }}
+
+
+
+ 订单管理
+
+
+
+ 业务统计
+
+
+
+ 通知公告
+
+
+
+ 内部管理
+
+
+
+ 更多功能
+
+
+
+
+
+ 发布商品
+
+
+
+ 商品管理
+
+
+
+ 订单核销
+
+
+
+ 优惠券
+
+
+
+ 使用说明
+
+
+
+
+
+ 预约记录
+
+
+ {{ item.goodsTitle }}
+
+
+
+
+
+
+ 车牌号:{{ item.carNo || '' }}
+
+
+
+
+ 预约人
+ {{ item.buyName }}
+
+
+ 电话
+ {{ item.buyPhoneNum }}
+
+
+ 预约时间
+ {{ formatDateChinese(item.appointmentDay) }}
+
+
+ 客户来源
+ 自来客户
+
+
+
+
+
+
+
diff --git a/pages/index/ordermanage.vue b/pages/index/ordermanage.vue
index 3f6fd9a..5104401 100644
--- a/pages/index/ordermanage.vue
+++ b/pages/index/ordermanage.vue
@@ -2,16 +2,20 @@
-
-
-
-
-
-
-
-
- 搜索
+
+
+
+
+
+
+
+
+
+
+
+
+
{{ item.text }}
@@ -42,7 +46,7 @@
-
+
@@ -93,8 +97,10 @@
diff --git a/pages/manage/deviceManage.vue b/pages/manage/deviceManage.vue
index f377af4..3d4226f 100644
--- a/pages/manage/deviceManage.vue
+++ b/pages/manage/deviceManage.vue
@@ -26,7 +26,7 @@
-
+
+ 新增文件
@@ -50,7 +50,7 @@
预览
编辑
- 历史版本
+ 历史
删除
@@ -69,7 +69,7 @@
-
+
{{ index + 1 }}
@@ -80,6 +80,9 @@
+
+ 暂无历史记录
+
@@ -110,11 +113,16 @@ export default {
}
},
- onLoad() {
+ onLoad(data) {
+ console.log('传递进来的数据',data)
+ if (data.folderId) {
+ this.fileId = data.folderId
+ }
+ this.getlist()
},
onShow() {
- this.getlist()
+
},
onReachBottom() {
@@ -131,16 +139,20 @@ export default {
},
methods: {
formatDate,
- async getlist() {
+ async getlist(flag) {
+ let data = {
+ pageSize: this.pageSize,
+ pageNum: this.pageNum,
+ fatherId: this.fileId,
+ fileName: this.fileName,
+ }
+ if (flag) {
+ data.fileName = null
+ }
let res = await request({
url: '/inspectionFile/inspectionFile/list',
method: 'get',
- data: {
- pageSize: this.pageSize,
- pageNum: this.pageNum,
- fatherId: this.fileId,
- fileName: this.fileName,
- }
+ data: data
})
if (this.pageNum != 1) {
this.arrlist = this.arrlist.concat(res.data)
@@ -208,7 +220,7 @@ export default {
this.fileId = fileId
this.arrlist = []
this.pageNum = 1
- this.getlist()
+ this.getlist(true)
},
viewFile(filePath) {
this.isLoading = true;
@@ -644,6 +656,7 @@ export default {
.searchContent {
display: flex;
justify-content: center;
+ margin-top: 20rpx;
}
/* 弹出层背景 */
diff --git a/pages/manage/informationAdd.vue b/pages/manage/informationAdd.vue
index a6be95d..d6a30ac 100644
--- a/pages/manage/informationAdd.vue
+++ b/pages/manage/informationAdd.vue
@@ -96,16 +96,8 @@
*
设备附件
-
-
+ 查看附件
+
{
+ this.box.folderId = res.data
+ uni.navigateTo({
+ url: '/pages/manage/deviceManage?type=staff&folderId=' + this.box.folderId
+ })
+ })
+ }else {
+ uni.navigateTo({
+ url: '/pages/manage/deviceManage?type=staff&folderId=' + this.box.folderId
+ })
+ }
+
+ },
}
}
@@ -373,6 +393,19 @@ export default {
}
+.lan_ {
+ font-size: 28rpx;
+ color: #327DFB;
+ display: flex;
+ align-items: center;
+
+ image {
+ width: 36rpx;
+ height: 36rpx;
+ margin-left: 15rpx;
+ }
+}
+
.top-icon {
margin-bottom: 45px;
}
diff --git a/pages/manage/informationManage.vue b/pages/manage/informationManage.vue
index 7f69774..f26b3cb 100644
--- a/pages/manage/informationManage.vue
+++ b/pages/manage/informationManage.vue
@@ -87,8 +87,10 @@ import code from '../../uni_modules/uview-ui/libs/config/props/code';
import request from '../../utils/request';
import {getDictDataByType} from "../../utils/utils";
import {getStorageWithExpiry} from "../../utils/auth";
+import headersVue from "@/components/header/headers.vue";
export default {
+ components: {headersVue},
data() {
return {
@@ -111,8 +113,13 @@ export default {
}
},
- onLoad() {
+ onLoad(data) {
this.partnerId = uni.getStorageSync('partnerId')
+ if (data.value) {
+ console.log(data.value)
+ this.tapindex = parseInt(data.value)
+ this.type = data.value === '0' ? null : data.value
+ }
this.getlistindex()
this.getTab()
},
@@ -169,7 +176,6 @@ export default {
uni.navigateTo({
url: '/pages/manage/informationAdd?type=' + type + '&id=' + id
})
-
},
getback() {
uni.navigateBack()
@@ -196,8 +202,6 @@ export default {
let total = res.total
this.totalPages = Math.ceil(total / this.pageSize);
},
-
-
},
@@ -524,6 +528,7 @@ export default {
.searchContent {
display: flex;
justify-content: center;
+ margin-top: 20rpx;
}
.box-bottom {
diff --git a/pages/manage/internalManagement.vue b/pages/manage/internalManagement.vue
index 60ba06b..12db6b6 100644
--- a/pages/manage/internalManagement.vue
+++ b/pages/manage/internalManagement.vue
@@ -1,134 +1,143 @@
-
-
-
-
-
-
-
-
- 员工管理
-
-
- 去查看
-
-
-
-
-
- 设备管理
-
-
- 去查看
-
-
-
-
-
- 资料管理
-
-
- 去查看
-
-
-
-
-
- 工作汇报
-
-
- 去查看
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+ 员工管理
+
+
+ 去查看
+
+
+
+
+
+ 设备管理
+
+
+ 去查看
+
+
+
+
+
+ 资料管理
+
+
+ 去查看
+
+
+
+
+
+ 工作汇报
+
+
+ 去查看
+
+
+
+
diff --git a/pages/manage/workReport/reportDetals.vue b/pages/manage/workReport/reportDetals.vue
index 738a814..dabeef6 100644
--- a/pages/manage/workReport/reportDetals.vue
+++ b/pages/manage/workReport/reportDetals.vue
@@ -86,6 +86,7 @@ import headersVue from '../../../components/header/headers.vue';
import request from "@/utils/request";
import {formatDateTimeToMinute} from "@/utils/utils";
import upload from "@/utils/upload";
+import config from "@/config";
export default {
data() {
@@ -110,18 +111,19 @@ export default {
reportTosStr:null,
fileList1: [],
buttonTitle:"保存",
+ baseImageUrl: config.baseImageUrl,
}
},
components: {
headersVue
},
- onLoad(data) {
+ async onLoad(data) {
+ await this.getReportTo(); // 等待 getReportTo 执行完成
if (data.id) {
- this.buttonTitle="修改"
+ this.buttonTitle = "修改"
console.log(data.id)
this.getWorkReport(data.id)
}
- this.getReportTo()
},
methods: {
formatDateTimeToMinute,
@@ -187,19 +189,6 @@ export default {
},
uploadFilePromise(url) {
return new Promise((resolve, reject) => {
- // let a = uni.uploadFile({
- // url: "http://192.168.2.21:7001/upload", // 仅为示例,非真实的接口地址
- // filePath: url,
- // name: "file",
- // formData: {
- // user: "test",
- // },
- // success: (res) => {
- // setTimeout(() => {
- // resolve(res.data.data);
- // }, 1000);
- // },
- // });
upload({
url: '/common/upload',
filePath: url,
@@ -211,7 +200,6 @@ export default {
},
/** 表单提交 */
onSubmit() {
- console.log('提交的数据:', this.report.reportTime)
//校验
const isValid = this.checkForm()
if (!isValid) {
@@ -225,7 +213,7 @@ export default {
this.report.reportTos = this.report.reportTos.map(item => item.id)
let url = '/work/report/create'
let method = 'post'
- if (this.type === 'edit') {
+ if (this.report.id) {
url = '/work/report/update'
method = 'put'
}
@@ -236,7 +224,7 @@ export default {
}).then(res => {
if (res.code === 200) {
uni.showToast({
- title: '保存成功',
+ title: '操作成功',
icon: 'none',
duration: 2000
});
@@ -295,6 +283,7 @@ export default {
// 根据 ID 数组查找对应的数据,并赋值给 report.reportTos
this.report.reportTos = this.reportToList.filter(item => res.data.reportTos.includes(item.id));
this.reportTosStr = this.report.reportTos.map(item => item.nickname).join(',')
+ console.log('当前选择的汇报对象',this.reportTosStr)
if (res.data.filePath) {
this.fileList1 = res.data.filePath.split(',').map(item => {
return {
diff --git a/pages/manage/workReport/reportList.vue b/pages/manage/workReport/reportList.vue
index bc75a83..2e3673f 100644
--- a/pages/manage/workReport/reportList.vue
+++ b/pages/manage/workReport/reportList.vue
@@ -3,11 +3,21 @@
+
-
+
+
+ 筛选
+
@@ -24,18 +34,51 @@
+
填写汇报
+
+
+
+
+
+
+
+
+
+
+
diff --git a/static/tabBar/home.png b/static/tabBar/home.png
new file mode 100644
index 0000000..4dad0d3
Binary files /dev/null and b/static/tabBar/home.png differ
diff --git a/static/tabBar/homex.png b/static/tabBar/homex.png
new file mode 100644
index 0000000..683cc86
Binary files /dev/null and b/static/tabBar/homex.png differ
diff --git a/static/tabBar/my.png b/static/tabBar/my.png
new file mode 100644
index 0000000..ebde622
Binary files /dev/null and b/static/tabBar/my.png differ
diff --git a/static/tabBar/myx.png b/static/tabBar/myx.png
new file mode 100644
index 0000000..2b1e4cd
Binary files /dev/null and b/static/tabBar/myx.png differ
diff --git a/static/tabBar/notice.png b/static/tabBar/notice.png
new file mode 100644
index 0000000..40194f4
Binary files /dev/null and b/static/tabBar/notice.png differ
diff --git a/static/tabBar/noticex.png b/static/tabBar/noticex.png
new file mode 100644
index 0000000..1d22d91
Binary files /dev/null and b/static/tabBar/noticex.png differ
diff --git a/static/tabBar/touxiang.png b/static/tabBar/touxiang.png
new file mode 100644
index 0000000..6f8e427
Binary files /dev/null and b/static/tabBar/touxiang.png differ