This commit is contained in:
许允枞 2025-03-26 17:58:50 +08:00
parent 6f1ca7d356
commit d461592220
3 changed files with 52 additions and 40 deletions

View File

@ -32,7 +32,7 @@
</view>
</u-upload>
<view class="box-list" v-if="driverLicenesImg != undefined">
<view class="box-list" v-if="driverLicenesImg != undefined">
<view class="list-box">
<view class="l-left">行驶证照片</view>
@ -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}; //
}
}
}

View File

@ -50,7 +50,7 @@
</view>
<view class="r-two-box">
<view class="h-two-box"
style="margin-bottom: 10px;border-bottom: 1px solid #DDDDDD;box-sizing: border-box;padding-bottom: 10px">
style="margin-bottom: 10px;border-bottom: 1px solid #DDDDDD;box-sizing: border-box;padding-bottom: 10px;">
<view class="h-two-l">
<view class="h_title"> 引车员</view>
@ -60,6 +60,15 @@
<image src="../..//static/imgs/t_.png" mode=""></image>
<text>更换引车员</text>
</view>
<view class="h-two-l" v-if="detailData.meetManName">
<view class="h_title"> 接车员</view>
<view class="h_name">{{ detailData.meetManName }}</view>
</view>
<view class="h-two-r" v-if="isChangeMeetMan" @tap="selectLeadMan">
<image src="../..//static/imgs/t_.png" mode=""></image>
<text>更换接车员</text>
</view>
</view>
<view class="h-two-box" v-if="isShowClient">
<view class="h-two-l">
@ -365,6 +374,7 @@ export default {
},
],
isChangeLeadMan: false,
isChangeMeetMan: false,
}
},
onLoad(option) {

View File

@ -651,7 +651,7 @@ export default {
}
.box_ {
width: 100%;
//width: 100%;
box-sizing: border-box;
padding: 10px;
background: #FFFFFF;