diff --git a/pages/index/Neworder.vue b/pages/index/Neworder.vue index 8ad6808..6c25e12 100644 --- a/pages/index/Neworder.vue +++ b/pages/index/Neworder.vue @@ -80,7 +80,12 @@ - + + + 代办人手机号 + + + @@ -227,6 +232,7 @@ export default { radioValue: '0', carModel: '', carNature: '', + otherPhone: '', show: false, shownature: false, showgoods: false, @@ -496,6 +502,7 @@ export default { inspectionWorkNodes: this.inspectionWorkNodes, leadManId: this.leadManId, startTime: this.recordTime, + otherPhone: this.otherPhone, } let res = await request({ diff --git a/pages/staff/staff.vue b/pages/staff/staff.vue index 6ea6ce8..b017761 100644 --- a/pages/staff/staff.vue +++ b/pages/staff/staff.vue @@ -38,9 +38,9 @@ {{ item.goodsName }} - 接待人:{{ item.workerName }} + 车型:{{ item.goodsTitle }} - 检测类型:{{ item.projectName }} + 检测类型:{{ item.skuName }} @@ -68,10 +68,15 @@ 客户来源: {{ item.customerSource }} - + + + 代办人电话: + {{ item.otherPhone }} + + - 检测内容: - {{ item.carNum }} + 检测内容: + {{ item.nodeNames }} @@ -113,6 +118,7 @@ import config from '@/config' import request from '../../utils/request'; import tabBar from '../../components/staffTabBer/tabBar.vue' +import {type} from "../../uni_modules/uni-forms/components/uni-forms/utils"; export default { data() { @@ -272,19 +278,32 @@ export default { method: 'get', params: { partnerId: this.partnerId, - status: this.tapindex + 1, + status: this.tapindex, carNum: this.carNum, pageSize: this.pageSize, pageNum: this.pageNum, } }) if (res.code == 200) { - if (this.pageNum != 1) { this.infoDatas = this.infoDatas.concat(res.rows) } else { this.infoDatas = res.rows } + const ids = this.infoDatas.filter(item => !item.nodeNames).map(item => item.id) + if (ids && ids.length > 0){ + const response = await request({ + url: "/partnerOwn/partner/getProjectByIds?ids=" + ids, + method: 'get' + }) + if (response.data){ + const data = response.data + this.infoDatas.forEach(item => { + this.$set(item, 'nodeNames', data[item.id]) + }) + } + } + let total = res.total this.totalPages = Math.ceil(total / this.pageSize); } @@ -590,4 +609,16 @@ export default { font-weight: bold; color: #FF571A; } + +/* 确保 "检测内容:" 始终在一行 */ +.single-line { + white-space: nowrap; + flex-shrink: 0; +} + +/* 允许 item.nodeNames 多行显示 */ +.multi-line { + white-space: pre-line; /* 保留换行符,但允许文本换行 */ + word-break: break-all; /* 长单词或 URL 会在必要时断开 */ +}