更新
This commit is contained in:
parent
39c2befe0d
commit
32a5fcab39
@ -12,12 +12,12 @@
|
||||
<view class="x-box">
|
||||
<view class="box-top">
|
||||
<view style=" width: 100%;">
|
||||
<view class="touxiang" v-if="!detailData.workerAvatar">
|
||||
<image src="../../static/detection/touxiang.png" mode=""></image>
|
||||
</view>
|
||||
<view class="touxiang" v-else>
|
||||
<image :src="baseImageUrl+detailData.workerAvatar" mode=""></image>
|
||||
</view>
|
||||
<!-- <view class="touxiang" v-if="!detailData.workerAvatar">-->
|
||||
<!-- <image src="../../static/detection/touxiang.png" mode=""></image>-->
|
||||
<!-- </view>-->
|
||||
<!-- <view class="touxiang" v-else>-->
|
||||
<!-- <image :src="baseImageUrl+detailData.workerAvatar" mode=""></image>-->
|
||||
<!-- </view>-->
|
||||
<view class="sanniu">
|
||||
<text>{{ detailData.workerName }}</text>
|
||||
</view>
|
||||
@ -39,10 +39,12 @@
|
||||
<text>手机号:</text>
|
||||
<text>{{ detailData.buyUserPhone }}</text>
|
||||
</view>
|
||||
<view class="dis-hui">
|
||||
<view class="dis-hui" style="display: flex; justify-content: space-between; align-items: center;">
|
||||
<text>引车员:</text>
|
||||
<text>{{ detailData.leadManName }}</text>
|
||||
<text style="margin-left: auto; color: blue;" @tap="selectLeadMan">更换引车员</text>
|
||||
</view>
|
||||
|
||||
<view class="dis-hui">
|
||||
<text>车型:</text>
|
||||
<text>{{ detailData.carType }}</text>
|
||||
@ -99,14 +101,12 @@
|
||||
<view style="width: 10%;">
|
||||
<view class="qiu_">{{ index + 1 }}</view>
|
||||
</view>
|
||||
|
||||
<text style="width:30%;box-sizing: border-box;padding-left: 5px;"> {{ item.title }}</text>
|
||||
<text class="times">{{ item.createTime }}</text>
|
||||
<text class="times">施工人员:
|
||||
{{ item.nickname }}
|
||||
</text>
|
||||
</view>
|
||||
|
||||
<view class="">
|
||||
<view style="margin-bottom: 5px; box-sizing: border-box;padding-left: 10%">{{ item.content }}</view>
|
||||
<view style="display: flex" v-if="item.images">
|
||||
@ -115,17 +115,12 @@
|
||||
<!-- <image :src="baseImageUrl+'/'+it" style="width: 28vw; height: 12vh; margin-right: 1vw; " ></image>-->
|
||||
|
||||
<!-- </view>-->
|
||||
<u-album :urls="item.imageList" style="padding-left: 40px"></u-album>
|
||||
|
||||
|
||||
<u-album :urls="item.imageList" :singleSize="70" style="padding-left: 40px"></u-album>
|
||||
</view>
|
||||
</view>
|
||||
<view style="display: flex;align-items: center;">
|
||||
<view class="xb_" v-if="index != detailData.stepInfos.length - 1 ">↓</view>
|
||||
|
||||
|
||||
</view>
|
||||
|
||||
</view>
|
||||
|
||||
</view>
|
||||
@ -236,6 +231,9 @@
|
||||
</u-popup>
|
||||
<u-picker :show="bankShow" :columns="bankList" @confirm="chooseBank" @cancel="bankShow=false"
|
||||
keyName="label"></u-picker>
|
||||
<u-picker :show="showLeadMan" :columns="leadManList" :defaultIndex="defaultIndex" @confirm="confirmLeadMan"
|
||||
@cancel="cancelLeadMan"
|
||||
keyName="nickname"></u-picker>
|
||||
|
||||
<uni-popup ref="alertDialog" type="dialog">
|
||||
<uni-popup-dialog cancelText="关闭" confirmText="确定" title="通知" content="您确定制证完成吗"
|
||||
@ -263,6 +261,7 @@ export default {
|
||||
bankList: [],
|
||||
bankShow: false,
|
||||
isRetrial: 1,
|
||||
showLeadMan: false,
|
||||
tbindex: 1,
|
||||
isOnline: 1,
|
||||
hge: false,
|
||||
@ -270,6 +269,7 @@ export default {
|
||||
orImages: false,
|
||||
show: false,
|
||||
xling: false,
|
||||
leadManList: [],
|
||||
baseUrl: this.$baseUrl,
|
||||
geindex: 0,
|
||||
detailData: {},
|
||||
@ -281,6 +281,7 @@ export default {
|
||||
},
|
||||
selectProject: [],
|
||||
lei: '请选择车辆类型',
|
||||
defaultIndex: [0],
|
||||
columns: [],
|
||||
cph: '',
|
||||
fileList1: [],
|
||||
@ -355,6 +356,62 @@ export default {
|
||||
dialogClose() {
|
||||
this.$refs.alertDialog.close()
|
||||
},
|
||||
selectLeadMan() {
|
||||
this.getLeadeMan();
|
||||
this.showLeadMan = true
|
||||
},
|
||||
/*获取引车员信息*/
|
||||
getLeadeMan() {
|
||||
this.leadManList = []
|
||||
request({
|
||||
url: '/system/role/getUsersByRoleCode',
|
||||
method: 'get',
|
||||
params: {
|
||||
code: "jcycy"
|
||||
}
|
||||
}).then(res => {
|
||||
this.leadManList.push(res.data)
|
||||
let result = this.leadManList
|
||||
.map((subArray, subArrayIndex) => {
|
||||
const index = subArray.findIndex(item => item.id === this.detailData.leadManId);
|
||||
if (index !== -1) {
|
||||
// 返回的是子数组的索引和匹配项的索引
|
||||
return {subArrayIndex, itemIndex: index};
|
||||
} else {
|
||||
// 没有找到匹配项,返回 null 或 undefined
|
||||
return null;
|
||||
}
|
||||
})
|
||||
.filter(item => item !== null); // 过滤掉没有匹配的项
|
||||
let index = result[0].itemIndex
|
||||
// let subArrayIndex = result[0].subArrayIndex
|
||||
this.defaultIndex = [index]
|
||||
})
|
||||
},
|
||||
cancelLeadMan() {
|
||||
this.showLeadMan = false
|
||||
},
|
||||
confirmLeadMan(e) {
|
||||
this.nickname = e.value[0].nickname
|
||||
this.leadManId = e.value[0].id
|
||||
this.showLeadMan = false
|
||||
let data = {
|
||||
partnerId: uni.getStorageSync('partnerId'),
|
||||
id: this.inspectionId,
|
||||
leadManId: this.leadManId
|
||||
}
|
||||
|
||||
request({
|
||||
url: '/system/info/updateLeadMan',
|
||||
method: 'post',
|
||||
data: data
|
||||
}).then(res => {
|
||||
uni.showToast({
|
||||
title: '修改成功'
|
||||
})
|
||||
this.getindex()
|
||||
})
|
||||
},
|
||||
//查询重审可以选择的项目
|
||||
getProject() {
|
||||
request({
|
||||
@ -452,6 +509,7 @@ export default {
|
||||
method: 'post',
|
||||
data: inspectionInfo
|
||||
})
|
||||
uni.navigateBack();
|
||||
return
|
||||
} else if (this.tbindex == 2 && this.isRetrial == 2) {
|
||||
//跳转到修改工单页面
|
||||
@ -459,7 +517,7 @@ export default {
|
||||
url: '/pages/index/Neworder?inspectionInfoId=' + this.inspectionInfoId
|
||||
})
|
||||
return
|
||||
}else if (this.tbindex == 0 && this.isRetrial == 0) {
|
||||
} else if (this.tbindex == 0 && this.isRetrial == 0) {
|
||||
status = 1
|
||||
}
|
||||
inspectionInfo.selectType = status
|
||||
@ -658,6 +716,16 @@ export default {
|
||||
deletePic1(event) {
|
||||
this[`fileList${event.name}`].splice(event.index, 1)
|
||||
},
|
||||
},
|
||||
mounted() {
|
||||
// 在组件挂载后启动定时器
|
||||
this.timer = setInterval(this.getindex, 3000);
|
||||
},
|
||||
beforeDestroy() {
|
||||
// 在组件销毁前清除定时器
|
||||
if (this.timer) {
|
||||
clearInterval(this.timer);
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
@ -38,7 +38,7 @@
|
||||
<view class="m-top">
|
||||
<view class="top-left">
|
||||
<view class="dhei">{{ item.goodsName }}</view>
|
||||
<text class="xhui">接待员:{{ item.workerName }}</text>
|
||||
<text class="xhui">当前检测人:{{ item.workerName }}</text>
|
||||
<text class="xhui" style="margin-left: 50rpx;">检测项目:{{ item.projectName }}</text>
|
||||
</view>
|
||||
<view @click="callUser(item.buyPhone)" class="top-right">
|
||||
@ -61,6 +61,11 @@
|
||||
<text>订单号:</text>
|
||||
<text>{{ item.orderNo }}</text>
|
||||
</view>
|
||||
<view class="on-input">
|
||||
<uni-icons type="map" color="#999999" size="16"></uni-icons>
|
||||
<text>引车员:</text>
|
||||
<text>{{ item.leadManName }}</text>
|
||||
</view>
|
||||
<view class="on-input">
|
||||
<uni-icons type="more" color="#999999" size="16"></uni-icons>
|
||||
<text>车牌号:</text>
|
||||
|
Loading…
Reference in New Issue
Block a user