From c34bc3b8e35763f61879949daf03a76d5d93af55 Mon Sep 17 00:00:00 2001 From: Vinjor Date: Fri, 22 Nov 2024 18:13:54 +0800 Subject: [PATCH 1/4] =?UTF-8?q?=E6=89=93=E7=94=B5=E8=AF=9D=E7=9A=84?= =?UTF-8?q?=E5=85=A8=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- manifest.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/manifest.json b/manifest.json index 0cae9f4..2548354 100644 --- a/manifest.json +++ b/manifest.json @@ -39,7 +39,9 @@ "", "", "", - "" + "", + "" + ] }, /* ios打包配置 */ From e99495791d68252d6722ce322dd5e7ffe210627a Mon Sep 17 00:00:00 2001 From: Vinjor Date: Sat, 23 Nov 2024 09:58:45 +0800 Subject: [PATCH 2/4] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E8=BD=A6=E8=BE=86?= =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages-order/addOrder/addOrder.vue | 32 ++++++++++++++++++++++++++++--- pages/myCar/addCarUser.vue | 9 ++++++++- 2 files changed, 37 insertions(+), 4 deletions(-) diff --git a/pages-order/addOrder/addOrder.vue b/pages-order/addOrder/addOrder.vue index 2985326..0dde5ce 100644 --- a/pages-order/addOrder/addOrder.vue +++ b/pages-order/addOrder/addOrder.vue @@ -644,9 +644,35 @@ export default { * 添加车辆和客户信息 */ addCarUserInfo(){ - uni.navigateTo({ - url: `/pages/myCar/addCarUser` - }) + if(this.userInfo){ + //已查出客户信息 + uni.navigateTo({ + url: '/pages/myCar/addCarUser?userInfo='+JSON.stringify(this.userInfo) + }) + }else if(this.phone != ''){ + //输入了内容 + const params = { + phoneOrCar: this.phone + } + request({ + url: '/admin-api/base/custom/page', + method: 'GET', + params: params + }).then(res => { + if (res.data.records.length > 0) { + this.userInfo = res.data.records[0] + //跳转添加客户车辆信息页 + uni.navigateTo({ + url: '/pages/myCar/addCarUser?userInfo='+JSON.stringify(this.userInfo) + }) + } + }) + }else{ + //没输入,直接加 + uni.navigateTo({ + url: `/pages/myCar/addCarUser` + }) + } }, editUserInfo(userInfo) { if (this.phone == '') return uni.showToast({ diff --git a/pages/myCar/addCarUser.vue b/pages/myCar/addCarUser.vue index a6d5c04..ef47e20 100644 --- a/pages/myCar/addCarUser.vue +++ b/pages/myCar/addCarUser.vue @@ -202,8 +202,15 @@ export default { natureIndex: 0, }; }, - onLoad() { + onLoad(data) { // 没有数据 需要赋值一下初始化 + if(data && data.hasOwnProperty("userInfo")){ + let thisUserInfoObj = JSON.parse(data.userInfo) + console.log("thisUserInfoObj",thisUserInfoObj) + this.userInfo.cusName = thisUserInfoObj.cusName + this.userInfo.sex = thisUserInfoObj.sex + this.userInfo.phoneNumber = thisUserInfoObj.phoneNumber + } this.bo1 = false; this.bo2 = true; this.pageTitle = '添加车辆信息' From a8aaa9eef7326ba3e99b401c8350fdf989c55e5f Mon Sep 17 00:00:00 2001 From: Vinjor Date: Sat, 23 Nov 2024 11:49:49 +0800 Subject: [PATCH 3/4] 1 --- components/orderCard.vue | 10 +-- pages-order/orderDetail/orderDetail.vue | 82 ++++++++++++++++++++----- 2 files changed, 71 insertions(+), 21 deletions(-) diff --git a/components/orderCard.vue b/components/orderCard.vue index ff0389c..b923f24 100644 --- a/components/orderCard.vue +++ b/components/orderCard.vue @@ -259,11 +259,11 @@ export default { .order-body { .carNum { - margin: 20rpx 0; + margin: 10rpx 0; } .carModel { - margin: 20rpx 0; + margin: 10rpx 0; font-weight: 500; font-size: 28rpx; color: #858BA0; @@ -330,7 +330,7 @@ export default { color: #858BA0; & > view { - margin: 30rpx 0; + margin: 10rpx 0; } } @@ -338,7 +338,7 @@ export default { display: flex; align-items: center; justify-content: flex-end; - column-gap: 10rpx; + //column-gap: 10rpx; padding-bottom: 30rpx; .btn { @@ -346,7 +346,7 @@ export default { height: 60rpx; border-radius: 30rpx 30rpx 30rpx 30rpx; border: 2rpx solid #0174F6; - + margin: 0 2rpx; display: flex; align-items: center; justify-content: center; diff --git a/pages-order/orderDetail/orderDetail.vue b/pages-order/orderDetail/orderDetail.vue index df61979..22bfc98 100644 --- a/pages-order/orderDetail/orderDetail.vue +++ b/pages-order/orderDetail/orderDetail.vue @@ -25,7 +25,7 @@ 车辆信息 - + {{ ticketInfo.carNo }} {{ ticketInfo.carBrandName+" " }} - {{ticketInfo.carInfo.carModel}} @@ -127,11 +127,11 @@ - 售价: - 数量: + 售价: + 数量: - 折扣: - 金额: + 折扣: + 金额: @@ -186,14 +186,14 @@ 维修配件 是否开放给客户 - +