This commit is contained in:
cclu 2023-08-02 18:33:48 +08:00
parent ceef51971c
commit 50641c7795

View File

@ -203,22 +203,22 @@
<view class="tab">
<view :class="popupTabSelect===item.value?'tabItem selectTabItem':'tabItem'" v-for="(item,index) in popupTab" :key="index" @click="handleChangePopupTab(item.value)">{{item.label}}</view>
</view>
<view class="assessmentTable">
<view class="assessmentTable" v-if="popupServiceShowList.DetailList && popupServiceShowList.DetailList.length>0">
<view class="bigBox" v-for="(item,index) in popupServiceShowList.DetailList" :key="index" >
<view class="assessmentItem" @click="handleNoShow(item)">
<view class="assessmentItem" @click="handleNoShow(item)" :style="{borderBottomWidth:!item.showChild?'0px':'1px'}">
<view class="left">{{item.PATROL_POSITION}}</view>
<view class="right">
<image :style="{transform:item.showChild?'':'rotate(-90deg)'}" class="more" src="https://eshangtech.com/ShopICO/ahyd-BID/newCommercial/arrow_bottom.svg"/>
</view>
</view>
<view v-if="item.showChild">
<view class="smallItem" v-for="(subItem,subIndex) in item.PositionDetailList" :key="subIndex" :style="{borderBottomWidth:subIndex===item.PositionDetailList.length-1?'0px':'2px'}" @click="handleShowImgDetail(subItem)">
<view class="smallItem" v-for="(subItem,subIndex) in item.PositionDetailList" :key="subIndex" :style="{borderBottomWidth:subIndex===item.PositionDetailList.length-1 ?'0px':'2px'}" @click="handleShowImgDetail(subItem)">
<view class="top">
<view class="time">{{subItem.PATROL_DATE.split(' ')[1]}}</view>
<view class="label">检查人: <span class="name">{{subItem.PATROL_PERSON}}</span></view>
</view>
<view class="itemBox" v-if="subItem.PATROL_SITUATION" @click="changeDetail(subItem)">
<view class="detailItem" >
<view class="detailItem">
<view class="detailValue">
<view class="detailText">{{ subItem.PATROL_SITUATION || "-"}}</view>
</view>
@ -253,6 +253,26 @@
</view>
</view>
</view>
<view class="list" v-else>
<view class="item" v-for="(item,index) in popupServiceShowList.SERVERPARTList" :key="index">
<view class="person">
<p class="value">{{item.PATROL_PERSON}}</p>
<p class="label">检查人</p>
</view>
<view class="person">
<p class="value">{{item.PATROL_DATE}}</p>
<p class="label">检查日期</p>
</view>
<view class="person">
<p class="value">{{item.PATROL_ROUTE}}</p>
<p class="label">路线</p>
</view>
<view class="person">
<image v-if="item.PATROL_IMG && item.PATROL_IMG.length>0" class="icon" src="https://eshangtech.com/ShopICO/ahyd-BID/examine/haveImg.svg"></image>
<p v-if="item.PATROL_IMG && item.PATROL_IMG.length>0" class="label">图片</p>
</view>
</view>
</view>
</view>
<view class="meetList" v-if="popupShow===3">
<view class="message" style="margin-bottom: 8px">
@ -425,6 +445,8 @@ export default {
item.DetailList.forEach(subItem=>{
subItem.showChild = true
})
//
item.DetailList.reverse()
})
//
this.popupServiceShowList = this.popupServiceList[0]
@ -464,11 +486,11 @@ export default {
subItem.showChild = !subItem.showChild
},
//
handleShowImgDetail(subItem){
if (subItem.PATROL_SITUATION){
this.showImg = true
}
},
handleShowImgDetail(subItem){
if (subItem.PATROL_SITUATION){
this.showImg = true
}
},
changeDetail(subItem){
this.showImgUrl=subItem
this.$forceUpdate()
@ -476,9 +498,10 @@ export default {
previewImage(event,subItem){
console.log('event',event)
console.log('subItem',subItem)
//
wx.previewImage({
current: event.currentTarget.dataset.src, // http
urls: subItem.imgList // http
urls: subItem.imgList // http
})
},
//
@ -552,7 +575,8 @@ export default {
this.getMeetingDetail()
}
},
//
//
//
handleChangeTab(value){
this.selectTab = value
uni.showLoading({
@ -598,6 +622,9 @@ export default {
duration:3000
})
}else{
uni.showLoading({
title: '正在加载...'
})
this.selectDate = value
// 2
if (this.selectTab===2){
@ -608,16 +635,16 @@ export default {
}
}
},
//
handleNoShow(item){
console.log('item',item)
item.showChild = !item.showChild
this.$forceUpdate()
},
hideShowImg(){
//
handleNoShow(item){
console.log('item',item)
item.showChild = !item.showChild
this.$forceUpdate()
},
hideShowImg(){
this.showImg = false
this.showImgUrl = {}
},
this.showImgUrl = {}
},
//
handleChangePopupTab(value){
this.popupTabSelect = value
@ -626,7 +653,6 @@ export default {
},
//
async getAreaList(){
const total = await request.$webGet(`CommercialApi/BaseInfo/GetSPRegionList`,{Province_Code:Store.state.userData.ProvinceCode})
uni.hideLoading()
if (total.Result_Code===100){
@ -639,7 +665,7 @@ export default {
this.selectAreaValue = this.areaList[0].value
this.selectAreaName = this.areaList[0].label
// selectAreaValue
//
//
this.getManagerList()
}
},
@ -667,6 +693,9 @@ export default {
},
//
async getManagerList(){
uni.showLoading({
title: '正在加载...'
})
const date = new Date(this.searchTime)
let y = date.getFullYear()
let m = date.getMonth() + 1
@ -1424,7 +1453,7 @@ export default {
.itemBox{
width: 100%;
display: flex;
align-items: center;
align-items: flex-end;
.detailItem{
width: 100%;
.detailValue{