From d4615922208d708f9c00608c899646c4ddd997eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=AE=B8=E5=85=81=E6=9E=9E?= <3422692813@qq.com> Date: Wed, 26 Mar 2025 17:58:50 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/index/Neworder.vue | 78 ++++++++++++++++++----------------- pages/index/orderdetails.vue | 12 +++++- pages/statistics/business.vue | 2 +- 3 files changed, 52 insertions(+), 40 deletions(-) diff --git a/pages/index/Neworder.vue b/pages/index/Neworder.vue index f0a64b3..12a41b5 100644 --- a/pages/index/Neworder.vue +++ b/pages/index/Neworder.vue @@ -32,7 +32,7 @@ - + 行驶证照片 @@ -297,7 +297,7 @@ export default { defaultIndex: [0], kehuDefaultIndex: [0], goodsDefaultIndex: [0, 0], - meetName:'', + meetName: '', columns: [], options: [], nature: [], @@ -306,7 +306,7 @@ export default { columnData: [], xinlist: [], zhilist: [], - isLoading:false, + isLoading: false, recordTime: Number(new Date()), baseUrl: this.$baseImageUrl, goodsId: '', @@ -490,40 +490,42 @@ export default { url: `/inspection/appointment/${this.appointmentId}`, method: 'get' }) - //客户姓名 - this.buyName = res.data.buyName - this.buyPhone = res.data.buyPhoneNum - //车牌 - this.carNum = res.data.carNo - //车辆性质 - this.carNature = res.data.carNature - //车辆品牌 - this.carModel = res.data.carModel - //车辆识别代码 - this.carIdNo = res.data.carIdNo - //skuid - this.skuId = res.data.skuId - //行驶证照片 - this.driverLicenesImg = res.data.driverLicenesImg == null ? undefined : [this.baseImageUrl + '/' + res.data.driverLicenesImg] - console.log('照片', this.driverLicenesImg) - //goodsId - this.goodsId = res.data.goodsId - this.goodstext = this.findItemById(this.columnData, this.skuId).label - //车辆注册日期 - this.carRegisterDate = res.data.carRegisterDate - this.carRegisterDateStr = formatDate(res.data.carRegisterDate) - //地址 - this.userAddress = res.data.address - //触发change变化的方法 - // 模拟change事件 - const mockEvent = { - columnIndex: 0, // 假设是第一列发生变化 - index: this.findGroupById(this.columnData, this.skuId).index, // 选择的索引 - picker: this.$refs.uPicker // 选择器实例 - }; - this.changeHandler(mockEvent); - //根据goodsId找出对应的索引位置 - this.goodsDefaultIndex = [this.goodsone[0].findIndex(item => item.value === this.goodsId),this.$refs.uPicker.getColumnValues(1).findIndex(item => item.value == this.skuId)] + if (res.data) { + //客户姓名 + this.buyName = res.data.buyName + this.buyPhone = res.data.buyPhoneNum + //车牌 + this.carNum = res.data.carNo + //车辆性质 + this.carNature = res.data.carNature + //车辆品牌 + this.carModel = res.data.carModel + //车辆识别代码 + this.carIdNo = res.data.carIdNo + //skuid + this.skuId = res.data.skuId + //行驶证照片 + this.driverLicenesImg = res.data.driverLicenesImg == null ? undefined : [this.baseImageUrl + '/' + res.data.driverLicenesImg] + console.log('照片', this.driverLicenesImg) + //goodsId + this.goodsId = res.data.goodsId + this.goodstext = this.findItemById(this.columnData, this.skuId).label + //车辆注册日期 + this.carRegisterDate = res.data.carRegisterDate + this.carRegisterDateStr = formatDate(res.data.carRegisterDate) + //地址 + this.userAddress = res.data.address + //触发change变化的方法 + // 模拟change事件 + const mockEvent = { + columnIndex: 0, // 假设是第一列发生变化 + index: this.findGroupById(this.columnData, this.skuId).index, // 选择的索引 + picker: this.$refs.uPicker // 选择器实例 + }; + this.changeHandler(mockEvent); + //根据goodsId找出对应的索引位置 + this.goodsDefaultIndex = [this.goodsone[0].findIndex(item => item.value === this.goodsId), this.$refs.uPicker.getColumnValues(1).findIndex(item => item.value == this.skuId)] + } }, findItemById(data, id) { for (const group of data) { @@ -540,7 +542,7 @@ export default { const group = data[index]; for (const item of group) { if (item.value === id) { - return { group, index }; // 返回组和对应的索引 + return {group, index}; // 返回组和对应的索引 } } } diff --git a/pages/index/orderdetails.vue b/pages/index/orderdetails.vue index b64d822..483b620 100644 --- a/pages/index/orderdetails.vue +++ b/pages/index/orderdetails.vue @@ -50,7 +50,7 @@ + style="margin-bottom: 10px;border-bottom: 1px solid #DDDDDD;box-sizing: border-box;padding-bottom: 10px;"> 引车员 @@ -60,6 +60,15 @@ 更换引车员 + + + 接车员 + {{ detailData.meetManName }} + + + + 更换接车员 + @@ -365,6 +374,7 @@ export default { }, ], isChangeLeadMan: false, + isChangeMeetMan: false, } }, onLoad(option) { diff --git a/pages/statistics/business.vue b/pages/statistics/business.vue index 975f137..386c434 100644 --- a/pages/statistics/business.vue +++ b/pages/statistics/business.vue @@ -651,7 +651,7 @@ export default { } .box_ { - width: 100%; + //width: 100%; box-sizing: border-box; padding: 10px; background: #FFFFFF;