From 69879f4d1a76f76df7e8b83fc12cf945913de1ce Mon Sep 17 00:00:00 2001 From: Vinjor Date: Wed, 27 Nov 2024 15:12:35 +0800 Subject: [PATCH 1/2] 1 --- pages-home/service/todoDetail.vue | 2 +- pages-repair/apply/applyForm.vue | 116 +++++++++++++++++++++----- pages-repair/applyList/todoDetail.vue | 2 +- pages/login/login.vue | 12 +-- 4 files changed, 101 insertions(+), 31 deletions(-) diff --git a/pages-home/service/todoDetail.vue b/pages-home/service/todoDetail.vue index d21d483..e5aa230 100644 --- a/pages-home/service/todoDetail.vue +++ b/pages-home/service/todoDetail.vue @@ -74,7 +74,7 @@ + :title="groupItem.groupName+'(合计:'+groupItem.typeNums+'种'+groupItem.nums+'个配件'"> diff --git a/pages-repair/apply/applyForm.vue b/pages-repair/apply/applyForm.vue index 93fea16..8a1091e 100644 --- a/pages-repair/apply/applyForm.vue +++ b/pages-repair/apply/applyForm.vue @@ -23,7 +23,7 @@ {{ item.name }} 单位: - {{ item.unit }} + {{ item.unitText }} @@ -33,17 +33,44 @@ + + + - 共选择: - {{ repairCount }}个配件 + 共选择: + {{ repairCount }}个配件 确认申请 确认添加 拍照上传 - + + + + + + {{ item.name }} + + 单位: + {{ item.unitText }} + + + + {{ item.num }} + + + + + + + + + + + @@ -83,9 +110,7 @@ //所有配件 repairList: [], //已选的配件 - selectedRepairList: [ - - ], + selectedRepairList: [], //搜索的配件名称 searchName: '', //选中的分类ID @@ -119,7 +144,20 @@ this.init() }, methods: { - + closeWaresPopup(){ + this.$refs.waresPopup.close() + //刷新数据列表 + this.chooseTab("") + }, + /** + * 打开已选择的配件弹出框 + */ + openChoosed(){ + if(this.selectedRepairList.length==0){ + return + } + this.$refs.waresPopup.open("bottom") + }, addTwi(){ if (!this.selectedRepairList || this.selectedRepairList.length === 0){ uni.showToast({ @@ -238,6 +276,7 @@ * 分页加载所有配件 */ pageList() { + let that = this let paramsObj = { pageNo: this.pageNo, pageSize: this.pageSize @@ -258,8 +297,8 @@ let thisDataList = res.data.records // 初始化数据 thisDataList = thisDataList.map(m => { - if (this.selectedRepairList && this.selectedRepairList.length > 0) { - const find = this.selectedRepairList.find(f => f.id === m.id) + if (that.selectedRepairList && that.selectedRepairList.length > 0) { + const find = that.selectedRepairList.find(f => f.id === m.id) if (find) { m.num = find.num } else { @@ -268,25 +307,21 @@ } else { m.num = 0 } - //翻译单位 - getDictTextByCodeAndValue("repair_unit", m.unit).then(value => { - m.unit = value - }).catch(error => { - m.unit = "未知" - console.error(error); - }); return m }) + console.log(thisDataList,"thisDataList") //判断 如果获取的数据的页码不是第一页,就让之前赋值获取过的数组数据 concat连接 刚获取的第n页数据 - if (this.pageNo != 1) { - this.repairList = this.repairList.concat(thisDataList) + if (that.pageNo != 1) { + that.repairList = that.repairList.concat(thisDataList) } else { - this.repairList = thisDataList + that.repairList = thisDataList } //将获取的总条数赋值 - this.total = res.data.total - this.isTriggered = false - } + that.total = res.data.total + that.isTriggered = false + }else{ + that.isTriggered = false + } }) }, addNum(repair) { @@ -558,4 +593,39 @@ color: #FFFFFF; } } + .listItem { + padding: 30rpx 0; + border-bottom: 2rpx solid #DDDDDD; + + &:last-child { + border-bottom: none; + } + + .repairName { + font-size: 32rpx; + color: #333333; + margin-bottom: 20rpx; + } + + .repairBottom { + display: flex; + align-items: center; + justify-content: space-between; + } + + .repairDesc { + font-size: 28rpx; + color: #858BA0; + } + + .repairUnit { + color: #333333; + } + + .repairBtns { + display: flex; + align-items: center; + column-gap: 10rpx; + } + } diff --git a/pages-repair/applyList/todoDetail.vue b/pages-repair/applyList/todoDetail.vue index 2f4abe7..05c2036 100644 --- a/pages-repair/applyList/todoDetail.vue +++ b/pages-repair/applyList/todoDetail.vue @@ -36,7 +36,7 @@ + :title="groupItem.groupName+'(合计:'+groupItem.typeNums+'种'+groupItem.nums+'个配件'"> {{ item.goodsName }}×{{ item.goodsCount }}{{ item.unitText }} diff --git a/pages/login/login.vue b/pages/login/login.vue index 68c581c..56858fe 100644 --- a/pages/login/login.vue +++ b/pages/login/login.vue @@ -22,9 +22,9 @@ - - 忘记密码 - + + + 登 录 @@ -77,9 +77,9 @@ qh: [{ text: '密码登录' }, - { - text: '验证码登录' - }, + // { + // text: '验证码登录' + // }, ], qindex: false, tel: '', From b8fe93a0d7fcbb839993851b1a961ff49839cd96 Mon Sep 17 00:00:00 2001 From: Vinjor Date: Wed, 27 Nov 2024 15:12:59 +0800 Subject: [PATCH 2/2] 1 --- config.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/config.js b/config.js index df7b558..f09c3b1 100644 --- a/config.js +++ b/config.js @@ -1,10 +1,10 @@ // 应用全局配置 module.exports = { - // baseUrl: 'https://www.nuoyunr.com', + baseUrl: 'https://www.nuoyunr.com', // baseUrl: 'http://124.222.105.7:48080', // baseUrl: 'http://192.168.1.4:48080', // baseUrl: "http://localhost:48080", - baseUrl: "http://rzqhb7.natappfree.cc", + // baseUrl: "http://rzqhb7.natappfree.cc", imagesUrl: 'http://shequ.0315e.com/static/images/pages/', baseImageUrl: 'https://www.nuoyunr.com/minio/', shareUrl: 'https://www.lighting-it.cn/share?inviteId=', @@ -15,7 +15,7 @@ module.exports = { // 应用名称 name: "智修小助手", // 应用版本 - version: "1.5", + version: "1.6", // 应用logo logo: "/static/logo.png'", // 官方网站